[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Tue Jan 30 16:30:58 UTC 2018
loleaflet/src/control/Control.LokDialog.js | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 497319834e68784490feaf83192b3052a5ff8d66
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Tue Jan 30 21:56:55 2018 +0530
No context menu on dialog's floating window canvas
Change-Id: Ia6c8cc5d8d198862cf674d43de2937e4a72fdfbb
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 308819a6..7086fcac 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -348,6 +348,8 @@ L.Control.LokDialog = L.Control.extend({
L.DomUtil.setStyle(floatingCanvas, 'left', left + 'px'); // yes, it's necessary to append 'px'
L.DomUtil.setStyle(floatingCanvas, 'top', top + 'px');
+ L.DomEvent.on(floatingCanvas, 'contextmenu', L.DomEvent.preventDefault);
+
// attach events
L.DomEvent.on(floatingCanvas, 'mousedown mouseup', function(e) {
var buttons = 0;
More information about the Libreoffice-commits
mailing list