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

Unified Diff: content/common/input/web_input_event_traits.cc

Issue 245833002: Implement async touchmove dispatch during scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 6 years, 8 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/common/input/web_input_event_traits.cc
diff --git a/content/common/input/web_input_event_traits.cc b/content/common/input/web_input_event_traits.cc
index 7de816a1a6bc9645e7232f8fdbd8cc6a7d709019..90d80696da1ac51a7c74c5c3ebfa36156ac94f79 100644
--- a/content/common/input/web_input_event_traits.cc
+++ b/content/common/input/web_input_event_traits.cc
@@ -358,4 +358,14 @@ bool WebInputEventTraits::IgnoresAckDisposition(
return false;
}
+bool WebInputEventTraits::IgnoresAckDisposition(const WebInputEvent& event) {
+ if (IgnoresAckDisposition(event.type))
+ return true;
+
+ if (WebInputEvent::isTouchEventType(event.type))
+ return static_cast<const WebTouchEvent&>(event).cancelable;
Rick Byers 2014/04/22 14:52:59 You're missing a !. Cancelable events must wait f
jdduke (slow) 2014/04/23 19:57:41 Of course, yes!
+
+ return false;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698