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

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

Issue 2182693003: Filter GestureFlingStarts with Vx=Vy=0 in RenderWidgetHostViewChildFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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 0af4485dd67f242ac49a3e99cf9cd50f31ba0a05..4428a69b9fa16e847e0b9dd6e7a2bb2f6f2fb3e6 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -428,6 +428,12 @@ bool InputRouterImpl::OfferToClient(const WebInputEvent& input_event,
bool InputRouterImpl::OfferToRenderer(const WebInputEvent& input_event,
const ui::LatencyInfo& latency_info,
InputEventDispatchType dispatch_type) {
+ DCHECK(input_event.type != blink::WebInputEvent::GestureFlingStart ||
+ static_cast<const blink::WebGestureEvent&>(input_event)
+ .data.flingStart.velocityX != 0.0 ||
+ static_cast<const blink::WebGestureEvent&>(input_event)
+ .data.flingStart.velocityY != 0.0);
+
// This conversion is temporary. WebInputEvent should be generated
// directly from ui::Event with the viewport coordinates. See
// crbug.com/563730.

Powered by Google App Engine
This is Rietveld 408576698