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

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 5 15:59:43 UTC 2020


 loleaflet/src/control/Control.Header.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d36989114b42896c09c9d8a32e57ad81ae84a31d
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Feb 5 11:29:00 2020 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Wed Feb 5 16:59:23 2020 +0100

    loleaflet: mobile: add permission precondition to row/column headers
    
    Change-Id: Ic26f3a4e129fac02932dd0ba54e81a20b68d1ca8
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88040
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/src/control/Control.Header.js b/loleaflet/src/control/Control.Header.js
index 167a782ad..5aeac06da 100644
--- a/loleaflet/src/control/Control.Header.js
+++ b/loleaflet/src/control/Control.Header.js
@@ -266,7 +266,7 @@ L.Control.Header = L.Control.extend({
 	},
 
 	_onPan: function (event) {
-		if (event.pointerType != 'touch')
+		if (event.pointerType !== 'touch' || this._map._permission !== 'edit')
 			return;
 
 		if (event.type == 'panstart')


More information about the Libreoffice-commits mailing list