Bug 716673 - Use the locked velocity instead of unlocked velocity in a couple of places. r=pcwalton

This commit is contained in:
Kartikaya Gupta 2012-01-10 10:05:59 -05:00
parent b927405877
commit 8a93b6f933

View File

@ -448,7 +448,8 @@ public class PanZoomController
stopAnimationTimer();
boolean stopped = stopped();
mX.startFling(stopped); mY.startFling(stopped);
mX.startFling(stopped);
mY.startFling(stopped);
startAnimationTimer(new FlingRunnable());
}
@ -508,9 +509,7 @@ public class PanZoomController
}
private boolean stopped() {
float absVelocity = (float)Math.sqrt(mX.velocity * mX.velocity +
mY.velocity * mY.velocity);
return absVelocity < STOPPED_THRESHOLD;
return getVelocity() < STOPPED_THRESHOLD;
}
private void updatePosition() {