Lines Matching refs:FlingGestureAnimator
1157 function FlingGestureAnimator(initialVelocity, initialValue) {
1193 FlingGestureAnimator.prototype = Object.create(Animator.prototype);
1197 FlingGestureAnimator._P0 = -5707.62;
1198 FlingGestureAnimator._P1 = 0.172;
1199 FlingGestureAnimator._P2 = 0.0037;
1204 FlingGestureAnimator.prototype._valueAtTime = function(t) {
1205 return FlingGestureAnimator._P0 * Math.exp(-FlingGestureAnimator._P2 * t) - FlingGestureAnimator._P1 * t - FlingGestureAnimator._P0;
1211 FlingGestureAnimator.prototype._velocityAtTime = function(t) {
1212 return -FlingGestureAnimator._P0 * FlingGestureAnimator._P2 * Math.exp(-FlingGestureAnimator._P2 * t) - FlingGestureAnimator._P1;
1218 FlingGestureAnimator.prototype._timeAtVelocity = function(v) {
1219 return -Math.log((v + FlingGestureAnimator._P1) / (-FlingGestureAnimator._P0 * FlingGestureAnimator._P2)) / FlingGestureAnimator._P2;
1222 FlingGestureAnimator.prototype.start = function() {
1230 FlingGestureAnimator.prototype.onAnimationFrame = function(now) {
1417 this._scrollAnimator = new FlingGestureAnimator(this._lastTouchVelocity, this._contentOffset);