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

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

Issue 2918053002: Move middle-click autoscroll to synthetic fling. (Closed)
Patch Set: Delete redundant cursor shape print Created 3 years, 6 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 | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/gesture_event_queue.cc
diff --git a/content/browser/renderer_host/input/gesture_event_queue.cc b/content/browser/renderer_host/input/gesture_event_queue.cc
index ae9efdb7b877b6784acd86fa21a5a78841babf91..b2dcff2d747ec3ec751d917e499649e915670995 100644
--- a/content/browser/renderer_host/input/gesture_event_queue.cc
+++ b/content/browser/renderer_host/input/gesture_event_queue.cc
@@ -116,7 +116,8 @@ bool GestureEventQueue::ShouldForwardForTapSuppression(
if (gesture_event.event.source_device ==
blink::kWebGestureDeviceTouchscreen)
touchscreen_tap_suppression_controller_.GestureFlingCancel();
- else
+ else if (gesture_event.event.source_device ==
+ blink::kWebGestureDeviceTouchpad)
touchpad_tap_suppression_controller_.GestureFlingCancel();
return true;
case WebInputEvent::kGestureTapDown:
@@ -243,7 +244,8 @@ void GestureEventQueue::ProcessGestureAck(InputEventAckState ack_result,
if (event_with_latency.event.source_device ==
blink::kWebGestureDeviceTouchscreen)
touchscreen_tap_suppression_controller_.GestureFlingCancelAck(processed);
- else
+ else if (event_with_latency.event.source_device ==
+ blink::kWebGestureDeviceTouchpad)
touchpad_tap_suppression_controller_.GestureFlingCancelAck(processed);
}
DCHECK_LT(event_index, coalesced_gesture_events_.size());
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698