loleaflet/src/layer/tile/TileLayer.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 769c0591ed999823775a057eeb154fc3aeb6bc37
Author: Pranav Kant <pran...@collabora.com>
Date:   Wed Apr 20 20:27:57 2016 +0530

    bccu#1656: Scroll when you are at the bottom of the screen
    
    Change-Id: Id78ee3ad75bc2f1f3781c3e8ede9d4262e46a0f9

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 477492d..753fc34 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -853,7 +853,7 @@ L.TileLayer = L.GridLayer.extend({
                                                 
this._map.latLngToLayerPoint(this._visibleCursor.getNorthEast()));
                var cursorPos = this._visibleCursor.getNorthWest();
 
-               if (!e && !this._map.getBounds().contains(cursorPos) && 
this._isCursorVisible) {
+               if (!e && !this._map.getBounds().contains(this._visibleCursor) 
&& this._isCursorVisible) {
                        var center = this._map.project(cursorPos);
                        center = 
center.subtract(this._map.getSize().divideBy(2));
                        center.x = Math.round(center.x < 0 ? 0 : center.x);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to