You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: