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

Unified Diff: content/browser/renderer_host/input/touch_emulator.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/touch_emulator.cc
diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
index f32a9ef4432906966bf69d56a2f3f7a15285f980..c7b8d4d7e2d99d7d0997d12a659090c60e3b4530 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -254,6 +254,7 @@ void TouchEmulator::CancelTouch() {
touch_event_.timeStampSeconds =
(base::TimeTicks::Now() - base::TimeTicks()).InSecondsF();
touch_event_.type = WebInputEvent::TouchCancel;
+ touch_event_.cancelable = false;
touch_event_.touches[0].state = WebTouchPoint::StateCancelled;
touch_active_ = false;
if (gesture_provider_.OnTouchEvent(MotionEventWeb(touch_event_)))

Powered by Google App Engine
This is Rietveld 408576698