[Libreoffice-commits] online.git: loleaflet/src

Andrzej Hunt andrzej.hunt at collabora.com
Fri Oct 30 12:04:00 PDT 2015


 loleaflet/src/map/Map.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 3c792c655f51b2b4fada2422422cfe51d0a80b83
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date:   Fri Oct 30 20:03:18 2015 +0100

    loleaflet: tdf#94599 Disable irrelevant context menu

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index effe453..0609337 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -53,6 +53,10 @@ L.Map = L.Evented.extend({
 		}
 		this._addLayers(this.options.layers);
 		L.Socket.connect(this);
+
+		// Inhibit the context menu - the browser thinks that the document
+		// is just a bunch of images, hence the context menu is useless (tdf#94599)
+		this.on('contextmenu', function() {});
 	},
 
 


More information about the Libreoffice-commits mailing list