[Libreoffice-commits] online.git: loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Tue Aug 4 08:19:28 PDT 2015
loleaflet/src/layer/tile/TileLayer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 87986002921824cdb66e2a724ae66180f9e687f4
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Tue Aug 4 18:18:38 2015 +0300
loleaflet: don't change the view if the cursor is not visible
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index fe6e776..b3aab76 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -615,7 +615,7 @@ L.TileLayer = L.GridLayer.extend({
this._map.latLngToLayerPoint(this._visibleCursor.getNorthEast()));
var cursorPos = this._visibleCursor.getNorthWest();
- if (!e && !this._map.getBounds().contains(cursorPos)) {
+ if (!e && !this._map.getBounds().contains(cursorPos) && this._isCursorVisible) {
var center = this._map.project(cursorPos);
center = center.subtract(this._map.getSize().divideBy(2));
center.x = center.x < 0 ? 0 : center.x;
More information about the Libreoffice-commits
mailing list