question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Markers move erratically while zooming on mobile

See original GitHub issue

Given a Leaflet map, if you initialize the map, add a circle marker, and invoke the following:

map.dragging.disable();
map.dragging.enable();

Then when you “pinch-to-zoom” on mobile via touch, the markers on the map move erratically while zoom is in progress, snapping back to the correct position after the zoom is complete. This makes for an ugly user experience.

http://i.imgur.com/O7ZlME5.gif markers moving on zoom

Replicated on Leaflet latest (1.0.0), on Android Chrome, and Chrome on a MS Surface Pro 3 running Windows 10 (using the touch screen.) Cannot replicate on desktop using a scroll wheel.

See playground here.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
delnercommented, Mar 12, 2016
0reactions
perliedmancommented, Apr 15, 2016

For now, we’ll keep the flag _simulated private in simulated events, but consider making it public when/if we get any feedback on anyone using this outside of the Leaflet codebase.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Markers move when zooming with Google Maps Android API v2
When adding some markers on a map using Google Maps Android API v2, the markers are no set to the right positions and...
Read more >
How can I prevent Leaflet from moving my marker while ...
Therefore, when zooming in/out, your actual icon "tip" (which is at bottom center) will "move" relatively to that position. Share.
Read more >
AcqKnowledge Software Guide | BIOPAC
Marker functionality can be automated for sequential application ... When the crosshair is moved into the graph window, the coordinates of the.
Read more >
Vicon Nexus Product Guide
Dolly/Zoom: Move the camera viewpoint closer to or further away from the focal point ... Vicon markers for a certain type of subject,...
Read more >
Storyline 360 Version History - Articulate Support
Fixed: The format painter behaved erratically when copying ... Fixed: Learners could swipe on mobile devices to move between slides even ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found