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

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

Issue 247433003: Mark touchcancel events as uncancelable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/browser/renderer_host/input/web_input_event_util.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc
index 8bce2c641c8100189214c7cb8687a4bfc76f029d..dd393ed602ea313b096d25cca401389c81a39b2b 100644
--- a/content/browser/renderer_host/input/web_input_event_util.cc
+++ b/content/browser/renderer_host/input/web_input_event_util.cc
@@ -218,6 +218,8 @@ blink::WebTouchEvent CreateWebTouchEventFromMotionEvent(
result.type = ToWebInputEventType(event.GetAction());
DCHECK(WebInputEvent::isTouchEventType(result.type));
+ if (result.type == WebInputEvent::TouchCancel)
+ result.cancelable = false;
result.timeStampSeconds =
(event.GetEventTime() - base::TimeTicks()).InSecondsF();

Powered by Google App Engine
This is Rietveld 408576698