From 153c4f4354fbf6cd572f954c95c44d3b2a9b753b Mon Sep 17 00:00:00 2001 From: Anton Vorobev Date: Thu, 19 Dec 2024 13:51:43 +0000 Subject: [PATCH] Pull request #5407: [DXCF-5555] Databox (Legend) - Databox (Legend) issues // 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 --- src/chart/inputhandlers/hover-producer.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chart/inputhandlers/hover-producer.component.ts b/src/chart/inputhandlers/hover-producer.component.ts index a54a6f6..ff9c7c9 100644 --- a/src/chart/inputhandlers/hover-producer.component.ts +++ b/src/chart/inputhandlers/hover-producer.component.ts @@ -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); } }