remove unnecessary preventDefault
This commit is contained in:
parent
95d6d27cb0
commit
f1e87ef665
@ -48,12 +48,7 @@ L.Draggable = L.Class.extend({
|
|||||||
_onDown: function (e) {
|
_onDown: function (e) {
|
||||||
if (e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }
|
if (e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }
|
||||||
|
|
||||||
L.DomEvent
|
L.DomEvent.stopPropagation(e);
|
||||||
.stopPropagation(e);
|
|
||||||
|
|
||||||
if (e.type === 'touchstart') {
|
|
||||||
L.DomEvent.preventDefault(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (L.Draggable._disabled) { return; }
|
if (L.Draggable._disabled) { return; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user