From 3fbc2fccc058c8d656cb343fa7038269febf1ec0 Mon Sep 17 00:00:00 2001 From: McBen Date: Sat, 31 Dec 2016 17:03:53 +0100 Subject: [PATCH] [leaflet] fixed click-event --- external/leaflet-src.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/leaflet-src.js b/external/leaflet-src.js index e5aef507..aaed0299 100644 --- a/external/leaflet-src.js +++ b/external/leaflet-src.js @@ -5189,11 +5189,11 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path : _initEvents: function () { if (this.options.clickable) { this._map.on('mousemove', this._onMouseMove, this); - this._map.on('click dblclick contextmenu', this._fireMouseEvent, this); + this._map.on('click', this._onClick, this); } }, - _fireMouseEvent: function (e) { + _onClick: function (e) { if (this._containsPoint(e.layerPoint)) { this.fire(e.type, e); }