Chromium Code Reviews| Index: ui/events/blink/input_handler_proxy.cc |
| diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc |
| index 821a38625a91a6bd85f23fb2bc89304939bdebc0..e128193c8c02e86acd7db610d989350e41461a23 100644 |
| --- a/ui/events/blink/input_handler_proxy.cc |
| +++ b/ui/events/blink/input_handler_proxy.cc |
| @@ -131,6 +131,10 @@ cc::ScrollState CreateScrollStateForGesture(const WebGestureEvent& event) { |
| scroll_state_data.position_x = event.x; |
| scroll_state_data.position_y = event.y; |
| scroll_state_data.is_beginning = true; |
| + // In Mac flings are also scrolls. |
| + if (event.data.scrollBegin.inertialPhase == |
|
dtapuska
2016/07/19 17:41:31
Is this going to work for devices that don't have
sahel
2016/07/19 22:47:03
I think yes, because there is no fling for devices
|
| + WebGestureEvent::MomentumPhase) |
| + scroll_state_data.is_in_inertial_phase = true; |
| break; |
| case WebInputEvent::GestureFlingStart: |
| scroll_state_data.velocity_x = event.data.flingStart.velocityX; |