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

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

Issue 183013010: Don't send touchcancel on touch scroll start (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a couple tests Created 6 years, 9 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/input_router_impl.cc
diff --git a/content/browser/renderer_host/input/input_router_impl.cc b/content/browser/renderer_host/input/input_router_impl.cc
index 84c2285ef623b4f59f3cb1574d9ad52c999e0049..f7845b74bb7004e8420278edb1311df096213731 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -92,8 +92,9 @@ TouchEventQueue::TouchScrollingMode GetTouchScrollingMode() {
return TouchEventQueue::TOUCH_SCROLLING_MODE_SYNC_TOUCHMOVE;
if (modeString == switches::kTouchScrollingModeAbsorbTouchmove)
return TouchEventQueue::TOUCH_SCROLLING_MODE_ABSORB_TOUCHMOVE;
- if (modeString != "" &&
- modeString != switches::kTouchScrollingModeTouchcancel)
+ if (modeString == switches::kTouchScrollingModeTouchcancel)
+ return TouchEventQueue::TOUCH_SCROLLING_MODE_TOUCHCANCEL;
+ if (modeString != "")
LOG(ERROR) << "Invalid --touch-scrolling-mode option: " << modeString;
return TouchEventQueue::TOUCH_SCROLLING_MODE_DEFAULT;
}

Powered by Google App Engine
This is Rietveld 408576698