loleaflet: update headers for every 'move' event

(and not just for 'moveend').

Change-Id: I487d22fff5e55741baa1a1d7f99798371fa3d284
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100478
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
This commit is contained in:
Dennis Francis 2020-08-07 14:14:06 +05:30
parent 7974e3e848
commit 691e4f66eb
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ L.Control.ColumnHeader = L.Control.Header.extend({
onAdd: function (map) {
map.on('updatepermission', this._onUpdatePermission, this);
map.on('moveend zoomchanged sheetgeometrychanged splitposchanged', this._updateCanvas, this);
map.on('move zoomchanged sheetgeometrychanged splitposchanged', this._updateCanvas, this);
this._initialized = false;
},

View file

@ -11,7 +11,7 @@ L.Control.RowHeader = L.Control.Header.extend({
onAdd: function (map) {
map.on('updatepermission', this._onUpdatePermission, this);
map.on('moveend zoomchanged sheetgeometrychanged splitposchanged', this._updateCanvas, this);
map.on('move zoomchanged sheetgeometrychanged splitposchanged', this._updateCanvas, this);
this._initialized = false;
},