loleaflet/src/layer/tile/TileLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a80c3b3a90a2a019ed8f65986d77b9487f68a7a3 Author: Mihai Varga <mihai.va...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits