From bcdb3e637dd0154a301b2df043c7b8487eb45047 Mon Sep 17 00:00:00 2001 From: Andrii Ovcharenko Date: Mon, 10 Feb 2025 16:50:48 +0100 Subject: [PATCH] hide crosshair mark on mouseleave (#1807) --- src/views/pane/crosshair-marks-pane-view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/pane/crosshair-marks-pane-view.ts b/src/views/pane/crosshair-marks-pane-view.ts index 0fc888f773..e513294233 100644 --- a/src/views/pane/crosshair-marks-pane-view.ts +++ b/src/views/pane/crosshair-marks-pane-view.ts @@ -75,7 +75,7 @@ export class CrosshairMarksPaneView implements IUpdatablePaneView { } private _updateImpl(): void { - const forceHidden = this._crosshair.options().mode === CrosshairMode.Hidden; + const forceHidden = this._crosshair.options().mode === CrosshairMode.Hidden || !this._crosshair.visible(); const serieses = this._pane.orderedSeries(); const timePointIndex = this._crosshair.appliedIndex(); const timeScale = this._chartModel.timeScale();