diff --git a/.changeset/dry-games-press.md b/.changeset/dry-games-press.md new file mode 100644 index 000000000..9295ae574 --- /dev/null +++ b/.changeset/dry-games-press.md @@ -0,0 +1,5 @@ +--- +"victory-voronoi-container": patch +--- + +Fix: #2369 `` tooltip breaks when mouse moves quickly between different charts diff --git a/packages/victory-voronoi-container/src/voronoi-helpers.ts b/packages/victory-voronoi-container/src/voronoi-helpers.ts index f05d729e6..17edd09b6 100644 --- a/packages/victory-voronoi-container/src/voronoi-helpers.ts +++ b/packages/victory-voronoi-container/src/voronoi-helpers.ts @@ -202,6 +202,7 @@ class VoronoiHelpersClass { } onMouseLeave = (evt, targetProps) => { + this.onMouseMove.cancel(); const activePoints = targetProps.activePoints || []; this.onDeactivated(targetProps, activePoints); const inactiveMutations = activePoints.length