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
Drag scrolling on touch devices fails because leaflet.js stops propagation of touchmove events #2031
Comments
Can you please also try setting |
Fantastic that has worked perfectly, many thanks. — On Tue, Sep 17, 2013 at 4:52 PM, Vladimir Agafonkin
|
This option is required to support disabling of scrolling on mobile devices. See Leaflet/Leaflet#2031 for more details
I know "tap: false" this trick work for many people but not for me. My code is below Please review and let me know how I can solve this. Or if possible I like to add a direction move button where user can click to move map up down + left right. `var map = L.map('map', { L.control.zoom({ var baseLayers = { L.control.layers(baseLayers).addTo(map);` |
@kuntalparbat This issue tracker is used for reporting bugs and discussing new features, not for gratis support reopening 3-year-old bugs. For questions on using Leaflet, please use gis.stackexchange.com or stackoverflow. |
I've configured leaflet to display a map with gesture support disabled (drag to move map, pinch to zoom etc.) as I'd like to display the map completely read-only. Even with touch options turned off, the leaflet map still stops propagation of the touch move event, which means the user can't drag the page up and down on a touch screen device, if they start the drag on the map. This is a problem on a mobile phone where the map portion of the page takes up most of the screen, prohibiting the user from scrolling down to the rest of the page.
The text was updated successfully, but these errors were encountered: