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); } }