| Index: ui/base/gestures/gesture_sequence.cc
|
| diff --git a/ui/base/gestures/gesture_sequence.cc b/ui/base/gestures/gesture_sequence.cc
|
| index 115229ab71a4c71069272d4239656878e0e836f1..07d42eda3f74e8e4ea95ac081e387cdb67aea8e0 100644
|
| --- a/ui/base/gestures/gesture_sequence.cc
|
| +++ b/ui/base/gestures/gesture_sequence.cc
|
| @@ -296,7 +296,10 @@ float CalibrateFlingVelocity(float velocity) {
|
| nu += x * a;
|
| x *= normalized_velocity;
|
| }
|
| - return nu * velocity;
|
| + if (velocity < 0.f)
|
| + return std::max(nu * velocity, -GestureConfiguration::fling_velocity_cap());
|
| + else
|
| + return std::min(nu * velocity, GestureConfiguration::fling_velocity_cap());
|
| }
|
|
|
| } // namespace
|
|
|