commit f3212e84c6a26d12529dc085737050725dd70a9d
parent f77ed1c961b71697ef7899e5a8aba83fa4b14b56
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 7 Nov 2017 07:35:56 +0300
[coordinates] do not show menu on left click -- conflicts with track drawing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/leaflet.control.coordinates/index.js b/src/lib/leaflet.control.coordinates/index.js
@@ -147,7 +147,7 @@ L.Control.Coordinates = L.Control.extend({
L.DomUtil.addClass(this._container, 'expanded');
L.DomUtil.addClass(this._map._container, 'coordinates-control-active');
this._map.on('mousemove', this.onMouseMove, this);
- this._map.on('contextmenu click', this.onMapClick, this);
+ this._map.on('contextmenu', this.onMapClick, this);
} else {
L.DomUtil.removeClass(this._container, 'expanded');
L.DomUtil.removeClass(this._map._container, 'coordinates-control-active');