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

Jan Holesovsky kendy at collabora.com
Thu Feb 4 19:46:53 UTC 2016


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

New commits:
commit 81bdf7cd7a1f4ec1089a48518899cfe6bf6ca7a4
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Feb 4 20:46:06 2016 +0100

    loleaflet: When the 'premission' is 'edit', disable dragging too.

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 4ea1448..c001e1f 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -75,6 +75,7 @@ L.Map = L.Evented.extend({
 		// when editing, we need the LOK session right away
 		if (options.permission === 'edit') {
 			this._socket.sendMessage('requestloksession');
+			this.dragging.disable();
 		}
 
 		// Inhibit the context menu - the browser thinks that the document


More information about the Libreoffice-commits mailing list