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

New commits:
commit 3c792c655f51b2b4fada2422422cfe51d0a80b83
Author: Andrzej Hunt <andrzej.h...@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() {});
        },
 
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to