commit acc50f8b4e23c1e6370d31100d3b0e6b1fef2f53
parent 1cfcc6caa6da1f165d298783db43f79a453a4f17
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 29 Oct 2019 22:21:03 +0100
capion control: re-enable context menu on right mouse click
Diffstat:
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/leaflet.control.caption/index.js b/src/lib/leaflet.control.caption/index.js
@@ -16,7 +16,6 @@ L.Control.Caption = L.Control.extend({
onAdd: function (map) {
this._map = map;
this._container = L.DomUtil.create('div', this.options.className);
- this._stopContainerEvents();
this._container.innerHTML = this._contents;
L.DomEvent.on(this._container, 'contextmenu', (e) => {
L.DomEvent.stopPropagation(e);
diff --git a/src/lib/leaflet.control.caption/style.css b/src/lib/leaflet.control.caption/style.css
@@ -6,6 +6,7 @@
color: #333;
text-decoration: none;
font-size: 11px;
+ user-select: none;
}
.leaflet-control-container .leaflet-control-caption a {