Interaction Disruptions After Panning SVG Map
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.
Im getting this issue on iOS.
Running into this issue too. Needs a fix.
@timmywil please look into this
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