fix draggable

This commit is contained in:
mourner 2010-09-21 15:27:47 +03:00
parent 0178d1c2d1
commit 9437cfda37

View File

@ -29,9 +29,7 @@ L.Draggable = L.Class.extend({
},
_onDown: function(e) {
if (e.shiftKey || ((e.which != 1) && (e.button != 1) && !e.touches)) { return; }
L.DomEvent.preventDefault(e);
if (e.shiftKey || ((e.which != 1) && (e.button != 1) && !e.touches)) { return true; }
if (e.touches && e.touches.length > 1) { return; }
if (e.touches && e.touches.length == 1) { e = e.touches[0]; }