disableClickPropagation fails after double tapping map on iOS
See original GitHub issueSteps to reproduce
- Open https://6v1ht.csb.app on iOS device
- Double tap on upper 50% of map to zoom
- Single tap on overlay element in lower 50% of map
Expected behavior
- Single tap on overlay element should not do anything because it is a
<div>
withdisableClickPropagation
Current behavior
- Map zooms in
Environment
- Leaflet version: 1.7.1
- Browser (with version): iOS Safari
- OS/Platform (with version): iOS 14.3
Additional context
- Also broken on https://shademap.app when you attempt to use slider at bottom of map.
- Thank you for maintaining this amazing library. I am investigating the bug and hoping to narrow down the cause. Any guidance is greatly appreciated.
Minimal example reproducing the issue https://codesandbox.io/s/epic-stonebraker-6v1ht?file=/src/index.js
Issue Analytics
- State:
- Created 3 years ago
- Comments:16
Top Results From Across the Web
My Maps app is not working - zoom/moving - Apple Discussions
Quit the maps app and restart. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping...
Read more >Why is double tap still being picked up in this IOS code?
Issue What I can't do is do the same thing (i.e. ignore) a double-click over the callout view, in that the MapKit map...
Read more >Leaflet 1.7 documentation - DevDocs
Whether the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift. If passed...
Read more >v3.3.1 JavaScript Library: All | Mapbox.js
You can subscribe to the following events using these methods. Event, Data, Description. click, MouseEvent, Fired when the user clicks (or taps) the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Make sure that map
tap
handler is disabled.P.S. But it should not be active in Chrome anyway…
@johnd0e I can confirm #7027 solves this issue, but it creates a new problem:
disableClickPropagation
no longer stops propagation of double taps.To reproduce, overlay an element over a map and
disableClickPropagation
then double tap the element and notice that the map zooms in.