[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 23 09:44:23 UTC 2018


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

New commits:
commit df5d96efa88fff2549fb5d1fedfc4dc59cc20977
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Nov 23 11:41:48 2018 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Nov 23 11:43:07 2018 +0200

    Fix scrolling when moving the cell cursor outside view in a spreadsheet
    
    Follow-up to the touch pinch zooming fixes in
    e27ae38bebf4b57aa7563357a188e33d0e1e0be8. Need to pass the special
    calledFromInvalidateCursorMsg property to the scrollto handler here,
    too.
    
    The calledFromInvalidateCursorMsg property is now slightly
    misleadingly named. Should rename it to something that covers both use
    cases.
    
    Change-Id: I232b6a40708c7635fcebef37ff5640e1ba9eaac5

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index dab81ba49..2a179ecec 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1916,7 +1916,7 @@ L.TileLayer = L.GridLayer.extend({
 					center = center.subtract(this._map.getSize().divideBy(2));
 					center.x = Math.round(center.x < 0 ? 0 : center.x);
 					center.y = Math.round(center.y < 0 ? 0 : center.y);
-					this._map.fire('scrollto', {x: center.x, y: center.y});
+					this._map.fire('scrollto', {x: center.x, y: center.y, calledFromInvalidateCursorMsg: true});
 				}
 				this._prevCellCursorXY = this._cellCursorXY;
 			}


More information about the Libreoffice-commits mailing list