Implements smoother panning around the map for keyboard controls

This commit is contained in:
Jayant Jain 2014-03-13 18:32:23 +05:30
parent 3c1ebc25ca
commit 17debf49e6

View file

@ -241,7 +241,7 @@ module.exports = class Camera extends CocoClass
@newZoom = newZoom
@tweenProgress = 0.01
createjs.Tween.get(@)
.to({tweenProgress: 1.0}, time, createjs.Ease.getPowInOut(3))
.to({tweenProgress: 1.0}, time, createjs.Ease.getPowOut(4))
.call @finishTween
else