You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The general bug here is that draggable markers don't receive click events after dragging the map. The events get discarded here. Normally, this wouldn't happen, because _moved gets reset on the mousedown immediately preceding the click. But for draggable markers, there are two L.Draggable's competing for the mousedown event: L.Marker.Drag's Draggable and L.Map.Drag's Draggable. The first one wins, and stops propagation. The map's _moved flag, which is true from the preceding drag, never gets reset.
Prior to 7ca19b5 this worked as desired because L.Marker fired the click event itself rather than going through this._map._fireMouseEvent.
Code:
How to reproduce bug:
Expected result: event printed to console.
Actual result: event is not handled.
It looks as my click event handler is lost during the dragging.
Browser: Chrome 33.0.1750.152
OS: Ubuntu
Leaflet version: current master (0.8)
The text was updated successfully, but these errors were encountered: