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

DoubleClick/DoubleTap zooms don't disable #2259

Closed
zta6 opened this issue Mar 8, 2023 · 7 comments
Closed

DoubleClick/DoubleTap zooms don't disable #2259

zta6 opened this issue Mar 8, 2023 · 7 comments
Labels
bug Something isn't working good first issue Good for newcomers need more info Further information is requested

Comments

@zta6
Copy link

zta6 commented Mar 8, 2023

maplibre-gl-js version: 2.4.0

browser: Chrome

Steps to Trigger Behavior

  1. map.doubleClickZoom.disable(), map.doubleClickZoom.isEnabled() returns false
  2. double click the map. See that it still zooms
  3. map.doubleClickZoom.isEnabled() returns true. Double clicking re-enables the double click zoom action.

Link to Demonstration

Expected Behavior

Double Click Zoom is disabled when disable() is called

Actual Behavior

Double click zoom is not disabled.

There is a mapbox bug for this: mapbox/mapbox-gl-draw#691

@HarelM
Copy link
Collaborator

HarelM commented Mar 8, 2023

Thanks for taking the time to report this issue!
Can you please add a jsbin/stackblitz/codepen reproduction?

@HarelM HarelM added bug Something isn't working good first issue Good for newcomers need more info Further information is requested labels Mar 8, 2023
@Chaitu-Tatipamula
Copy link

can i work on this

@HarelM
Copy link
Collaborator

HarelM commented Mar 9, 2023

Sure! Go ahead!

@zta6
Copy link
Author

zta6 commented Mar 31, 2023

Update: much like the mapbox bug, this seems to only occur when mapbox-draw is added. So perhaps the issue isn't on MapLibre's side?

But it looks like this PR: mapbox/mapbox-gl-draw#696 is supposedly the one that fixed the bug in mapbox-draw. And that was in 1.0.4. I'm on mapbox-draw 1.4.1 and still seeing this.

@zta6
Copy link
Author

zta6 commented Mar 31, 2023

@HarelM
Copy link
Collaborator

HarelM commented Nov 19, 2023

If this is still relevant I'll be happy to reopen this issue.
Closing for now.

@HarelM HarelM closed this as completed Nov 19, 2023
@cckolon
Copy link

cckolon commented Apr 2, 2024

I'm still seeing this in mapbox-gl v 3.2.0 and with mapbox-gl-draw v 1.4.3. Disabling double click zoom works without the draw component, but fails with the draw component added. Disabling on load worked in my case, but this is still definitely an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants