Skip to content

How to prevent double click zoom when user click on a marker #319

Closed
@leandrooriente

Description

@leandrooriente

Hey guys,

I have a map that display some image galleries cards.

I wan't to prevent the user to zoom in the map when he double click on the gallery navigation (next, previous) but preserving the double click for zoom when its in on the the map.

disableDoubleClickZoom: true is not an option. We need the double click zoom on map.

Some gifs explaining what I trying to do.

Expected double click zoom.
zoomok

Unexpected double click zoom
zoomnotok

I already have try some solutions.
Ref and eventListener on gallery arrow to stopPropagation, default onClick stopPropagation on arrow, event.nativeEvent.stopImmediatePropagation()... but without success.

Any help will be very appreciate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions