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

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

Issue 171283002: Always reset touch action at the beginning of a new gesture sequence (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address rbyers' comments. Created 6 years, 10 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
Index: content/browser/renderer_host/input/input_router_impl.cc
diff --git a/content/browser/renderer_host/input/input_router_impl.cc b/content/browser/renderer_host/input/input_router_impl.cc
index b303acdb94cb21899d3042796cce2fe0c561ca98..da790ff9a3f25ce3daebd13359a1d059f68da78f 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -286,6 +286,9 @@ void InputRouterImpl::SendMouseEventImmediately(
void InputRouterImpl::SendTouchEventImmediately(
const TouchEventWithLatencyInfo& touch_event) {
+ if (WebInputEventTraits::IsNewTouchSequence(touch_event.event))
jdduke (slow) 2014/02/21 15:45:33 Hmm, what if the touch handler is removed during a
jdduke (slow) 2014/02/21 15:50:10 Hmm, we should probably have |OnHasTouchEventHandl
tdresser 2014/02/21 19:14:03 In theory OnHasTouchHandlers should be completely
Rick Byers 2014/02/21 19:52:13 I think Jared is right here - good catch! The pro
+ touch_action_filter_.OnStartNewTouchSequence();
+
FilterAndSendWebInputEvent(touch_event.event, touch_event.latency, false);
}

Powered by Google App Engine
This is Rietveld 408576698