[leaflet] fixed click-event

This commit is contained in:
McBen
2016-12-31 17:03:53 +01:00
parent 0f86bfae6a
commit 3fbc2fccc0

View File

@ -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);
}