Skip to content

Interaction Disruptions After Panning SVG Map #674

Open
@videositefree

Description

@videositefree

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions