Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: content/browser/renderer_host/input/immediate_input_router.cc

Issue 23856016: Send touch cancel to renderer when scrolling starts (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/input/immediate_input_router_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/immediate_input_router.cc
diff --git a/content/browser/renderer_host/input/immediate_input_router.cc b/content/browser/renderer_host/input/immediate_input_router.cc
index a4c69054fd16cb8838053438b95b287a81ae904c..f596d858522939b0412207fbcabe3f0d76f19e66 100644
--- a/content/browser/renderer_host/input/immediate_input_router.cc
+++ b/content/browser/renderer_host/input/immediate_input_router.cc
@@ -558,17 +558,8 @@ void ImmediateInputRouter::ProcessTouchAck(
void ImmediateInputRouter::HandleGestureScroll(
const GestureEventWithLatencyInfo& gesture_event) {
- if (!enable_no_touch_to_renderer_while_scrolling_)
- return;
-
- // Once scrolling is started stop forwarding touch move events to renderer.
- if (gesture_event.event.type == WebInputEvent::GestureScrollBegin)
- touch_event_queue_->set_no_touch_move_to_renderer(true);
-
- if (gesture_event.event.type == WebInputEvent::GestureScrollEnd ||
- gesture_event.event.type == WebInputEvent::GestureFlingStart) {
- touch_event_queue_->set_no_touch_move_to_renderer(false);
- }
+ if (enable_no_touch_to_renderer_while_scrolling_)
+ touch_event_queue_->OnGestureScrollEvent(gesture_event);
}
} // namespace content
« no previous file with comments | « no previous file | content/browser/renderer_host/input/immediate_input_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698