[Libreoffice-commits] online.git: loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Fri Jul 31 07:35:16 PDT 2015
loleaflet/src/layer/tile/GridLayer.js | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit f2a950d885f85e5125d1fd614e26f4b927ade81b
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Fri Jul 31 17:34:24 2015 +0300
loleaflet: handle the case when prefetching starts from the last part
diff --git a/loleaflet/src/layer/tile/GridLayer.js b/loleaflet/src/layer/tile/GridLayer.js
index 75db98f..1a983d1 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -856,6 +856,10 @@ L.GridLayer = L.Layer.extend({
this._preFetchPart += 1;
this._preFetchBorder = null;
}
+ else if (diff === 0 && this._currentPart > 0) {
+ this._preFetchPart -= 1;
+ this._preFetchBorder = null;
+ }
else if (diff > 0) {
if (this._currentPart - diff >= 0) {
// lower part number
More information about the Libreoffice-commits
mailing list