Skip to content

Commit

Permalink
Pull request #5407: [DXCF-5555] Databox (Legend) - Databox (Legend) i…
Browse files Browse the repository at this point in the history
…ssues // init

Merge in DXCHARTS/dxchart5 from bugfix/DXCF-5555-databox-legend-databox-legend-issues to master

* commit '5b9de064c4f7e831c9c42a0ebbdfe0e1f4247d30':
  [DXCF-5555] Databox (Legend) - Databox (Legend) issues // remove copy
  [DXCF-5555] Databox (Legend) - Databox (Legend) issues // init

GitOrigin-RevId: 7a04b25e4662bcb8533d1801b24f11e597cc2f04
  • Loading branch information
Keelaro1 authored and dxcity committed Jan 13, 2025
1 parent 24738ae commit 153c4f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chart/inputhandlers/hover-producer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ export class HoverProducerComponent extends ChartBaseElement {
);
this.addRxSubscription(
this.chartModel.candlesUpdatedSubject.subscribe(() => {
// update hover if it was the last candle
// update hover if its timestamp is equal or greater than last candle's one
const lastCandle = this.chartModel.getLastVisualCandle();
if (this.hover !== null && lastCandle !== undefined) {
if (lastCandle.candle.timestamp === this.hover.timestamp) {
if (lastCandle.candle.timestamp <= this.hover.timestamp) {
this.updateHover(lastCandle);
}
}
Expand Down

0 comments on commit 153c4f4

Please sign in to comment.