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

Henry Castro hcastro at collabora.com
Tue Apr 18 20:36:30 UTC 2017


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

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

    loleaflet: animate pan if animate: true specified
    
    Change-Id: I1d6b70d33d7459984da1541e3cd80e722268ce13

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