commit 8632d78149a2a71959bbeea67f3a241ab73cb59b
parent f3212e84c6a26d12529dc085737050725dd70a9d
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 7 Nov 2017 07:48:14 +0300
Revert "[coordinates] do not show menu on left click -- conflicts with track drawing"
This reverts commit f808e2466d1430adaf93cae5e9ec38cf40813d35.
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', this.onMapClick, this);
+ this._map.on('contextmenu click', this.onMapClick, this);
} else {
L.DomUtil.removeClass(this._container, 'expanded');
L.DomUtil.removeClass(this._map._container, 'coordinates-control-active');