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

Unified Diff: content/browser/renderer_host/tap_suppression_controller_aura.cc

Issue 10399017: improved tap suppression change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/tap_suppression_controller_aura.cc
diff --git a/content/browser/renderer_host/tap_suppression_controller_aura.cc b/content/browser/renderer_host/tap_suppression_controller_aura.cc
index 7f8196eaf1d1c679b850cbcd227b2e4eb6b62bb6..dbeb3d5a7449f6c316aa47a22f49bc066d2e26c8 100644
--- a/content/browser/renderer_host/tap_suppression_controller_aura.cc
+++ b/content/browser/renderer_host/tap_suppression_controller_aura.cc
@@ -123,9 +123,8 @@ void TapSuppressionController::GestureFlingCancelAck(bool processed) {
break;
case GFC_IN_PROGRESS:
if (processed)
- state_ = LAST_CANCEL_STOPPED_FLING;
- else
- state_ = NOTHING;
+ fling_cancel_time_ = base::TimeTicks::Now();
+ state_ = LAST_CANCEL_STOPPED_FLING;
break;
case MD_STASHED:
if (!processed) {
@@ -144,7 +143,6 @@ void TapSuppressionController::GestureFlingCancel(double cancel_time) {
case NOTHING:
case GFC_IN_PROGRESS:
case LAST_CANCEL_STOPPED_FLING:
- fling_cancel_time_ = base::TimeTicks::Now();
state_ = GFC_IN_PROGRESS;
break;
case MD_STASHED:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698