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

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

Issue 788923002: Touch Events - changedTouches list includes non-changed touch points on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 11 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/touch_event_stream_validator.cc
diff --git a/content/common/input/touch_event_stream_validator.cc b/content/common/input/touch_event_stream_validator.cc
index 4c7598901dd2b1b145eeeaed55d014a5b956dc78..324e47a6ffa05db80032c9d30426605334c8bc77 100644
--- a/content/common/input/touch_event_stream_validator.cc
+++ b/content/common/input/touch_event_stream_validator.cc
@@ -139,6 +139,12 @@ bool TouchEventStreamValidator::Validate(const WebTouchEvent& event,
break;
case WebTouchPoint::StateStationary:
+ // TODO(jdduke): Remove this after implementing TouchMove events
+ // filtering based on corrected touches state in TouchEventQueue,
+ // crbug.com/452032.
+ if (event.type == WebInputEvent::TouchMove)
+ found_valid_state_for_type = true;
+
break;
case WebTouchPoint::StateCancelled:

Powered by Google App Engine
This is Rietveld 408576698