[Pkg-javascript-commits] [leaflet] 57/78: Fix #4313 : correct simulated click handling in L.Path

Jonas Smedegaard dr at jones.dk
Sat May 7 08:58:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 66f6843bcd0e97b3c7e3c90c89a0b957dcd0bbb3
Author: Mikaël Couesnon <mikael.couesnon at gmail.com>
Date:   Thu Mar 10 18:54:00 2016 +0100

    Fix #4313 : correct simulated click handling in L.Path
---
 src/layer/vector/Path.SVG.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/layer/vector/Path.SVG.js b/src/layer/vector/Path.SVG.js
index f530636..9734e66 100644
--- a/src/layer/vector/Path.SVG.js
+++ b/src/layer/vector/Path.SVG.js
@@ -129,7 +129,7 @@ L.Path = L.Path.extend({
 	},
 
 	_onMouseClick: function (e) {
-		if (this._map.dragging && this._map.dragging.moved()) { return; }
+		if (!e._simulated && this._map.dragging && this._map.dragging.moved()) { return; }
 
 		this._fireMouseEvent(e);
 	},

-- 
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