[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Tue May 23 01:07:30 UTC 2017
loleaflet/src/layer/marker/DivIcon.js | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 41c561233d60bbb32b084c8ced9345c82737f305
Author: Henry Castro <hcastro at collabora.com>
Date: Mon May 22 21:08:30 2017 -0400
loleaflet: prevent default context menu of the grab handles
Change-Id: I12ede87cb8207257470720c130913e3ab7e967dd
diff --git a/loleaflet/src/layer/marker/DivIcon.js b/loleaflet/src/layer/marker/DivIcon.js
index c1e1cdd3..c2c7cb74 100644
--- a/loleaflet/src/layer/marker/DivIcon.js
+++ b/loleaflet/src/layer/marker/DivIcon.js
@@ -20,6 +20,7 @@ L.DivIcon = L.Icon.extend({
var div = (oldIcon && oldIcon.tagName === 'DIV') ? oldIcon : document.createElement('div'),
options = this.options;
+ L.DomEvent.on(div, 'contextmenu', L.DomEvent.preventDefault);
div.innerHTML = options.html !== false ? options.html : '';
if (options.bgPos) {
More information about the Libreoffice-commits
mailing list