Stop touchStart propagation in Draggable. Without this dragging marker will fire a contextmenu event on touch as the map gets a touch start/end event but none of the moves.

This commit is contained in:
danzel 2012-09-03 15:41:06 +12:00
parent 1aff46cb27
commit 514908f812

View File

@ -40,6 +40,7 @@ L.Draggable = L.Class.extend({
((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }
L.DomEvent.preventDefault(e);
L.DomEvent.stopPropagation(e);
if (L.Draggable._disabled) { return; }