From 5c39f741ffbf5284129f5a022b3e0ed3f88cdc22 Mon Sep 17 00:00:00 2001 From: glitch4347 Date: Wed, 29 Nov 2023 14:18:15 +0100 Subject: [PATCH] hotfix: call mouseOver and mouseMove to render crosshair on init and zoomin --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index e0138a7..ca82f37 100644 --- a/src/index.ts +++ b/src/index.ts @@ -321,6 +321,7 @@ export class LinePod extends ChartwerkPod { } onMouseOver(): void { + this.onMouseMove(); this.crosshair.style('display', null); this.crosshair.selectAll('.crosshair-circle') .style('display', null); @@ -335,6 +336,11 @@ export class LinePod extends ChartwerkPod { return this.options.doubleClickEvent.isActive; } + protected onBrushEnd(): void { + super.onBrushEnd(); + this.onMouseOver(); + } + // methods below rewrite s, (move more methods here) protected zoomOut(): void { if(d3.event.type === 'dblclick' && !this.isDoubleClickActive()) {