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

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

Issue 1383633002: Don't throttle touch events on resent GestureScrollUpdates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/touch_event_queue.cc
diff --git a/content/browser/renderer_host/input/touch_event_queue.cc b/content/browser/renderer_host/input/touch_event_queue.cc
index 35b1657048ba5635cf1ffbba8c353f8687b94359..2acae93c2cefbb03adf02c25cc3862d7b937fe57 100644
--- a/content/browser/renderer_host/input/touch_event_queue.cc
+++ b/content/browser/renderer_host/input/touch_event_queue.cc
@@ -637,7 +637,7 @@ void TouchEventQueue::OnGestureScrollEvent(
}
if (gesture_event.event.type == blink::WebInputEvent::GestureScrollUpdate)
- send_touch_events_async_ = true;
+ send_touch_events_async_ = (gesture_event.event.resendingPluginId == -1);
jdduke (slow) 2015/09/30 20:26:46 Can't the resending and non-resending events be in
}
void TouchEventQueue::OnGestureEventAck(
@@ -650,7 +650,8 @@ void TouchEventQueue::OnGestureEventAck(
// A valid |pending_async_touchmove_| will be flushed when the next event is
// forwarded.
if (event.event.type == blink::WebInputEvent::GestureScrollUpdate)
- send_touch_events_async_ = (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED);
+ send_touch_events_async_ = (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED) &&
+ (event.event.resendingPluginId == -1);
}
void TouchEventQueue::OnHasTouchEventHandlers(bool has_handlers) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698