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

Pranav Kant pranavk at collabora.co.uk
Tue Sep 27 02:29:35 UTC 2016


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

New commits:
commit bd40df2c976f33dc8475bcdd2337f7a28db87659
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Tue Sep 27 07:55:55 2016 +0530

    loleaflet: Update view cursors when zoom changes
    
    Change-Id: I58c8e71379b11c334c7a3cdd2d0b767d5b9d023c

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index df48df7..3ea0829 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -176,6 +176,7 @@ L.TileLayer = L.GridLayer.extend({
 			map.on('zoomend', this._onCellCursorShift, this);
 		}
 		map.on('zoomend', this._updateClientZoom, this);
+		map.on('zoomend', L.bind(this.eachView, this, this._viewCursors, this._onUpdateViewCursor, this, false));
 		map.on('resize zoomend', this._invalidateClientVisibleArea, this);
 		map.on('dragstart', this._onDragStart, this);
 		map.on('requestloksession', this._onRequestLOKSession, this);


More information about the Libreoffice-commits mailing list