Regression: embedded maps on Android devices will prevent drag-scroll in v0.7.7 (and in 1.0.0-beta)
See original GitHub issueThe trick specified in #2031 to add tap: false
to the map options in order to prevent Leaflet from swallowing touchmove
events is broken in Leaflet 0.7.7, as well as in 1.0.0-beta.1 and 1.0.0-beta.2. So, for maps that are embedded in part of a page, Leaflet 0.7.5 is the last version I could recommend using if you want to prevent that map from not hijacking touch-scroll (edit: on Android devices).
I have a very simple page you can load in a mobile browser or mobile simulator to test this effect on each of the four versions I’ve specified: http://louh.github.io/nyc-community-boards
The code for this lives here: https://github.com/louh/leaflet-embedded
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How to fix Maps when it crashes - Android - Google Maps Help
If the Google Maps app on your phone or tablet crashes or has other issues that affect your experience on Maps, try the...
Read more >Maps SDK for Android release notes - Google Developers
This change applies to all versions of the Maps SDK for Android. July 18, 2022. 18.1.0. Release 18.1.0. The Maps SDK for Android...
Read more >Authorization Failure in Google Maps Android ... - Issue Tracker
Sorry I just noticed on your steps you mention using a live application which I can do as long as you can use...
Read more >Adding Google Maps to a Flutter app - Google Codelabs
Introduction. Flutter is Google's mobile app SDK for crafting high-quality native experiences on iOS and Android in record time.
Read more >google_maps_flutter | Flutter Package - Pub.dev
0.0 where some updates to the map don't take effect on Android. Fixes iOS native unit tests on M1 devices. Minor fixes for...
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
There must have been a mixup, since the first link above also uses Leaflet 0.7.5, and works 😃
Here’s an example that actually shows this problem in latest master: http://playground-leaflet.rhcloud.com/juge/edit?html,output - it reproduces the issue both in Chrome on Android as well as in desktop Chrome with mobile emulation, as @louh mentions.
as a workaround until this is fixed
.leaflet-container { -ms-touch-action: inherit !important; touch-action: inherit !important; }
can be added to the embedding page’s css. tested in chromes device emulator.