[prev in list] [next in list] [prev in thread] [next in thread]
List: libreoffice-commits
Subject: [Libreoffice-commits] online.git: loleaflet/src
From: mihai.varga () collabora ! com (Mihai Varga)
Date: 2015-07-31 14:35:16
Message-ID: 20150731143516.AF71E76243 () kemper ! freedesktop ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic