Chromium Code Reviews| Index: content/browser/renderer_host/overscroll_controller.cc |
| diff --git a/content/browser/renderer_host/overscroll_controller.cc b/content/browser/renderer_host/overscroll_controller.cc |
| index feb4247436317fd41b219209a1173f2c3544543b..738f14a8b04eb0d181d7f63f49b6adebdb991672 100644 |
| --- a/content/browser/renderer_host/overscroll_controller.cc |
| +++ b/content/browser/renderer_host/overscroll_controller.cc |
| @@ -171,8 +171,10 @@ void OverscrollController::ProcessEventForOverscroll( |
| case WebKit::WebInputEvent::MouseWheel: { |
| const WebKit::WebMouseWheelEvent& wheel = |
| static_cast<const WebKit::WebMouseWheelEvent&>(event); |
| - if (wheel.hasPreciseScrollingDeltas) |
| - ProcessOverscroll(wheel.deltaX, wheel.deltaY); |
| + if (wheel.hasPreciseScrollingDeltas) { |
| + ProcessOverscroll(wheel.deltaX / wheel.accelerationRatioX, |
|
rjkroege
2013/02/13 22:08:04
nit: inverse ratios (i.e. multiplies are cheaper)
|
| + wheel.deltaY / wheel.accelerationRatioY); |
| + } |
| break; |
| } |
| case WebKit::WebInputEvent::GestureScrollUpdate: { |