panzoom icon indicating copy to clipboard operation
panzoom copied to clipboard

Interaction Disruptions After Panning SVG Map

Open videositefree opened this issue 11 months ago • 4 comments

The issue arises when using the panzoom library on an SVG world map. The map is interactive, allowing users to identify specific countries or islands. However, users must zoom in or pan to access smaller regions. The problem occurs when moving the map by holding and releasing the mouse button. Upon releasing the mouse, a click event is triggered on the country or island, potentially disrupting the intended interaction and marking incorrect regions.

Expected behavior

To address this, a function or flag could be added to track whether the user is currently interacting with the map. This would prevent any click events from firing when the user releases the mouse button after panning the map, ensuring the intended interaction is maintained and avoiding the accidental marking of incorrect regions.

videositefree avatar Jan 03 '25 12:01 videositefree

Im getting this issue on iOS.

aravind3566 avatar Jan 17 '25 03:01 aravind3566

Running into this issue too. Needs a fix.

x528491x avatar Apr 26 '25 19:04 x528491x

@timmywil please look into this

x528491x avatar May 04 '25 06:05 x528491x

https://github.com/timmywil/panzoom/issues/332

The above issue shows the same bug and the maintainer had marked it as completed before closing it.

The issue was 8 years ago. So, is the bug existing now a regression or was it never addressed in the first place?

Please revert @timmywil

x528491x avatar May 26 '25 02:05 x528491x