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

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

Issue 11361150: Suppress sending mousedown / mouseup when in fling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Corrected the TSC bug revealed by unit tests Created 8 years, 1 month 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 | « content/browser/renderer_host/tap_suppression_controller.h ('k') | 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 8d3c39d79695dbce3d1f66451bc624b98b046192..a79fe8a56ec16819e06e6d54409b6f298e6329a3 100644
--- a/content/browser/renderer_host/tap_suppression_controller_aura.cc
+++ b/content/browser/renderer_host/tap_suppression_controller_aura.cc
@@ -132,8 +132,8 @@ void TapSuppressionController::GestureFlingCancelAck(bool processed) {
TRACE_EVENT0("browser",
"TapSuppressionController::GestureFlingCancelAck");
mouse_down_timer_.Stop();
- render_widget_host_->ForwardMouseEvent(stashed_mouse_down_);
state_ = NOTHING;
mohsen 2012/11/21 18:34:54 If MouseDown is forwarded before setting the state
rjkroege 2012/11/21 20:41:18 this is indeed an issue. TSC is not tested or inte
mohsen 2012/11/21 22:11:32 I agree. The only problem is that most of the code
+ render_widget_host_->ForwardMouseEvent(stashed_mouse_down_);
} // Else waiting for the timer to release the mouse event.
break;
case LAST_CANCEL_STOPPED_FLING:
@@ -164,8 +164,8 @@ void TapSuppressionController::MouseDownTimerExpired() {
case MD_STASHED:
TRACE_EVENT0("browser",
"TapSuppressionController::MouseDownTimerExpired");
- render_widget_host_->ForwardMouseEvent(stashed_mouse_down_);
state_ = NOTHING;
mohsen 2012/11/21 18:34:54 The same as note under line 136.
+ render_widget_host_->ForwardMouseEvent(stashed_mouse_down_);
break;
}
}
« no previous file with comments | « content/browser/renderer_host/tap_suppression_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698