[Libreoffice-commits] online.git: loleaflet/src
Dennis Francis (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 10 14:50:20 UTC 2020
loleaflet/src/layer/marker/Cursor.js | 2 ++
loleaflet/src/layer/marker/Marker.js | 1 +
2 files changed, 3 insertions(+)
New commits:
commit e976cf3eb79a6398cdb818142ba4b1c01172428d
Author: Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Thu Jul 9 19:44:01 2020 +0530
Commit: Dennis Francis <dennis.francis at collabora.com>
CommitDate: Fri Jul 10 16:50:01 2020 +0200
cursors and markers should reposition on splitposchanged
Change-Id: Ic4b61de28fb20e24c7c7b97c89b3821682005814
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98495
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Dennis Francis <dennis.francis at collabora.com>
diff --git a/loleaflet/src/layer/marker/Cursor.js b/loleaflet/src/layer/marker/Cursor.js
index 638e971fd..c668c205f 100644
--- a/loleaflet/src/layer/marker/Cursor.js
+++ b/loleaflet/src/layer/marker/Cursor.js
@@ -30,9 +30,11 @@ L.Cursor = L.Layer.extend({
this.update();
this.getPane().appendChild(this._container);
+ this._map.on('splitposchanged', this.update, this);
},
onRemove: function () {
+ this._map.off('splitposchanged', this.update, this);
if (this._container) {
this.getPane().removeChild(this._container);
}
diff --git a/loleaflet/src/layer/marker/Marker.js b/loleaflet/src/layer/marker/Marker.js
index 0d398c407..d9e1db258 100644
--- a/loleaflet/src/layer/marker/Marker.js
+++ b/loleaflet/src/layer/marker/Marker.js
@@ -67,6 +67,7 @@ L.Marker = L.Layer.extend({
if (this._splitPanesContext) {
events.moveend = this.update;
+ events.splitposchanged = this.update;
}
if (this._zoomAnimated && !this._splitPanesContext) {
More information about the Libreoffice-commits
mailing list