mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 716673 - Use the locked velocity instead of unlocked velocity in a couple of places. r=pcwalton
This commit is contained in:
parent
b927405877
commit
8a93b6f933
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user