[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Aug 15 16:43:03 UTC 2018
loleaflet/src/layer/tile/GridLayer.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit eb448a6dd9b5d9f6558d2c3fd9510757ec77537e
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Wed Aug 15 18:41:46 2018 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Wed Aug 15 18:42:35 2018 +0200
Update visibla area first before requesting new tiles
Change-Id: I379e4d92adf34bf16a1990123328b75c50f13df2
diff --git a/loleaflet/src/layer/tile/GridLayer.js b/loleaflet/src/layer/tile/GridLayer.js
index b7c451437..dc77255e9 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -541,6 +541,10 @@ L.GridLayer = L.Layer.extend({
}
}
+ this._sendClientVisibleArea();
+
+ this._sendClientZoom();
+
if (queue.length !== 0) {
if (newView) {
// we know that a new set of tiles that cover the whole view has been requested
@@ -558,10 +562,6 @@ L.GridLayer = L.Layer.extend({
this._addTiles(queue, fragment);
this._level.el.appendChild(fragment);
}
-
- this._sendClientVisibleArea();
-
- this._sendClientZoom();
},
_updateOnChangePart: function () {
More information about the Libreoffice-commits
mailing list