Index: content/renderer/input/render_widget_input_handler.cc |
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc |
index 215f1f4b1dc6f2d22e72156e64b837bd6b412a04..6a0a652a335b31889ffe318323b2789e66718a7b 100644 |
--- a/content/renderer/input/render_widget_input_handler.cc |
+++ b/content/renderer/input/render_widget_input_handler.cc |
@@ -364,6 +364,18 @@ void RenderWidgetInputHandler::HandleInputEvent( |
: gfx::Vector2dF(), |
processed != WebInputEventResult::NotHandled); |
} |
+ } else if (input_event.type == WebInputEvent::GestureScrollBegin || |
+ input_event.type == WebInputEvent::GestureScrollEnd || |
+ input_event.type == WebInputEvent::GestureScrollUpdate) { |
+ const WebGestureEvent& gesture_event = |
+ static_cast<const WebGestureEvent&>(input_event); |
+ if (gesture_event.sourceDevice == blink::WebGestureDeviceTouchpad) { |
+ delegate_->ObserveGestureEventAndResult( |
+ gesture_event, |
+ event_overscroll ? event_overscroll->latest_overscroll_delta |
+ : gfx::Vector2dF(), |
+ processed != WebInputEventResult::NotHandled); |
+ } |
} |
bool frame_pending = |