Continue to preventDefault on touch

This commit is contained in:
John Firebaugh 2013-06-24 16:31:25 -04:00
parent 37c4842a73
commit 05461bdd11

View File

@ -53,6 +53,10 @@ L.Draggable = L.Class.extend({
L.DomEvent
.stopPropagation(e);
if (e.type === 'touchstart') {
L.DomEvent.preventDefault(e);
}
if (L.Draggable._disabled) { return; }
this._simulateClick = true;