[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/src

Henry Castro hcastro at collabora.com
Wed Apr 19 10:16:13 UTC 2017


 loleaflet/src/map/anim/Map.PanAnimation.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f988f7591a29ec68dcb4592f6bcabd8975e25308
Author: Henry Castro <hcastro at collabora.com>
Date:   Tue Apr 18 16:30:43 2017 -0400

    loleaflet: animate pan if animate: true specified
    
    Without this, the initial position of the document is sometimes misplaced.
    
    Change-Id: I1d6b70d33d7459984da1541e3cd80e722268ce13
    Reviewed-on: https://gerrit.libreoffice.org/36650
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/map/anim/Map.PanAnimation.js b/loleaflet/src/map/anim/Map.PanAnimation.js
index 007ead88..32624c95 100644
--- a/loleaflet/src/map/anim/Map.PanAnimation.js
+++ b/loleaflet/src/map/anim/Map.PanAnimation.js
@@ -65,8 +65,8 @@ L.Map.include({
 			this.fire('movestart');
 		}
 
-		// animate pan unless animate: false specified
-		if (options.animate !== false) {
+		// animate pan if animate: true specified
+		if (options.animate === true) {
 			L.DomUtil.addClass(this._mapPane, 'leaflet-pan-anim');
 
 			var newPos = this._getMapPanePos().subtract(offset);


More information about the Libreoffice-commits mailing list