[Pkg-javascript-commits] [leaflet] 42/301: moved this._moved = false to the top of _onDown to fix an Issue von shift-click after dragging
Jonas Smedegaard
js at moszumanska.debian.org
Mon Jan 27 22:22:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet.
commit 5de0be072a1cbbcf8ffbd759e2b39e66e61a104e
Author: fastrde <strachanski at googlemail.com>
Date: Thu Aug 8 15:32:48 2013 +0200
moved this._moved = false to the top of _onDown to fix an Issue von shift-click after dragging
---
src/dom/Draggable.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dom/Draggable.js b/src/dom/Draggable.js
index 469e97c..d832fa8 100644
--- a/src/dom/Draggable.js
+++ b/src/dom/Draggable.js
@@ -46,6 +46,8 @@ L.Draggable = L.Class.extend({
},
_onDown: function (e) {
+ this._moved = false;
+
if (e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }
L.DomEvent
@@ -64,8 +66,6 @@ L.Draggable = L.Class.extend({
L.DomUtil.addClass(el, 'leaflet-active');
}
- this._moved = false;
-
if (this._moving) { return; }
this._startPoint = new L.Point(first.clientX, first.clientY);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git
More information about the Pkg-javascript-commits
mailing list