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: 743132fb8f0ff653196a4bdf00b70ecf6bb14901
  • Loading branch information
Keelaro1 authored and dxcity committed Feb 5, 2025
1 parent 3d8001f commit 4813453
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 4813453

Please sign in to comment.