made zoom animation slightly faster

This commit is contained in:
mourner 2012-02-17 11:53:11 +02:00
parent fcf899f9f1
commit fe77297cf5

View File

@ -93,7 +93,7 @@ L.Map.include(!L.DomUtil.TRANSITION ? {} : {
if (!newTileBg.transition) { if (!newTileBg.transition) {
// TODO move to Map options // TODO move to Map options
newTileBg.transition = new L.Transition(this._tileBg, { newTileBg.transition = new L.Transition(this._tileBg, {
duration: 0.3, duration: 0.25,
easing: 'cubic-bezier(0.25,0.1,0.25,0.75)' easing: 'cubic-bezier(0.25,0.1,0.25,0.75)'
}); });
newTileBg.transition.on('end', this._onZoomTransitionEnd, this); newTileBg.transition.on('end', this._onZoomTransitionEnd, this);