From 9437cfda376bd5aaf85665a88631a722f77eb902 Mon Sep 17 00:00:00 2001 From: mourner Date: Tue, 21 Sep 2010 15:27:47 +0300 Subject: [PATCH] fix draggable --- src/dom/Draggable.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dom/Draggable.js b/src/dom/Draggable.js index 233e383a..6d04676c 100644 --- a/src/dom/Draggable.js +++ b/src/dom/Draggable.js @@ -29,10 +29,8 @@ L.Draggable = L.Class.extend({ }, _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 true; } - L.DomEvent.preventDefault(e); - if (e.touches && e.touches.length > 1) { return; } if (e.touches && e.touches.length == 1) { e = e.touches[0]; }