[Pkg-javascript-commits] [leaflet-markercluster] 327/479: Reduce all animation timers to 200ms instead of 250ms so that they happen within the space of a leaflet zoom. Fixes #140 more details on there.

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 542fc622b636ecd686cc214c61b445b65a32393c
Author: danzel <danzel at localhost.geek.nz>
Date:   Fri Mar 1 14:03:40 2013 +1300

    Reduce all animation timers to 200ms instead of 250ms so that they happen within the space of a leaflet zoom. Fixes #140 more details on there.
---
 dist/MarkerCluster.css          | 8 ++++----
 src/MarkerCluster.Spiderfier.js | 4 ++--
 src/MarkerClusterGroup.js       | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dist/MarkerCluster.css b/dist/MarkerCluster.css
index a915c1a..dbfab7d 100644
--- a/dist/MarkerCluster.css
+++ b/dist/MarkerCluster.css
@@ -1,6 +1,6 @@
 .leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
-	-webkit-transition: -webkit-transform 0.25s ease-out, opacity 0.25s ease-in;
-	-moz-transition: -moz-transform 0.25s ease-out, opacity 0.25s ease-in;
-	-o-transition: -o-transform 0.25s ease-out, opacity 0.25s ease-in;
-	transition: transform 0.25s ease-out, opacity 0.25s ease-in;
+	-webkit-transition: -webkit-transform 0.2s ease-out, opacity 0.2s ease-in;
+	-moz-transition: -moz-transform 0.2s ease-out, opacity 0.2s ease-in;
+	-o-transition: -o-transform 0.2s ease-out, opacity 0.2s ease-in;
+	transition: transform 0.2s ease-out, opacity 0.2s ease-in;
 	}
diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index 83f118b..268bdd4 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -231,7 +231,7 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 		setTimeout(function () {
 			group._animationEnd();
 			group.fire('spiderfied');
-		}, 250);
+		}, 200);
 	},
 
 	_animationUnspiderfy: function (zoomDetails) {
@@ -309,7 +309,7 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 				delete m._spiderLeg;
 			}
 			group._animationEnd();
-		}, 250);
+		}, 200);
 	}
 });
 
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index c6d6247..b7c3d96 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -809,7 +809,7 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
 			});
 
 			me._animationEnd();
-		}, 250);
+		}, 200);
 	},
 
 	_animationZoomOut: function (previousZoomLevel, newZoomLevel) {
@@ -850,7 +850,7 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
 				c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1);
 			});
 			me._animationEnd();
-		}, 250);
+		}, 200);
 	},
 	_animationAddLayer: function (layer, newCluster) {
 		var me = this;
@@ -871,7 +871,7 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
 					layer.setOpacity(1);
 
 					me._animationEnd();
-				}, 250);
+				}, 200);
 
 			} else { //Just became a cluster
 				this._forceLayout();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list