Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction Disruptions After Panning SVG Map #674

Open
videositefree opened this issue Jan 3, 2025 · 0 comments
Open

Interaction Disruptions After Panning SVG Map #674

videositefree opened this issue Jan 3, 2025 · 0 comments

Comments

@videositefree
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant