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@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
Henry Castro 2020-02-05 11:29:00 -04:00
parent 4fa8e4ee83
commit d36989114b

View file

@ -266,7 +266,7 @@ L.Control.Header = L.Control.extend({
}, },
_onPan: function (event) { _onPan: function (event) {
if (event.pointerType != 'touch') if (event.pointerType !== 'touch' || this._map._permission !== 'edit')
return; return;
if (event.type == 'panstart') if (event.type == 'panstart')