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

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

Issue 78263003: Ignore TouchCancel ack dispositions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REbase Created 7 years, 1 month 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 5ef59b95b7ba90e287a29b56bee9d134c497e1f0..5da4d9a833e2a1ac8e9c43ea12620f74ec596cc1 100644
--- a/content/common/input/web_input_event_traits.cc
+++ b/content/common/input/web_input_event_traits.cc
@@ -285,13 +285,20 @@ void WebInputEventTraits::Coalesce(const WebInputEvent& event_to_coalesce,
bool WebInputEventTraits::IgnoresAckDisposition(
blink::WebInputEvent::Type type) {
- return type == WebInputEvent::GestureTapDown ||
- type == WebInputEvent::GestureShowPress ||
- type == WebInputEvent::GestureTapCancel ||
- type == WebInputEvent::GesturePinchBegin ||
- type == WebInputEvent::GesturePinchEnd ||
- type == WebInputEvent::GestureScrollBegin ||
- type == WebInputEvent::GestureScrollEnd;
+ switch (type) {
+ case WebInputEvent::GestureTapDown:
+ case WebInputEvent::GestureShowPress:
+ case WebInputEvent::GestureTapCancel:
+ case WebInputEvent::GesturePinchBegin:
+ case WebInputEvent::GesturePinchEnd:
+ case WebInputEvent::GestureScrollBegin:
+ case WebInputEvent::GestureScrollEnd:
+ case WebInputEvent::TouchCancel:
+ return true;
+ default:
+ break;
+ }
+ return false;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698