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

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

Issue 93733005: Implement support for touch-action: pan-x/pan-y in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply jdduke CR feedback Created 7 years 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 8e498fd5e46a73f3cb27d9f611eb85e69d17a344..54c45ed3f57be188c6090795374f9334bef3c187 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -197,8 +197,9 @@ void InputRouterImpl::SendKeyboardEvent(const NativeWebKeyboardEvent& key_event,
}
void InputRouterImpl::SendGestureEvent(
- const GestureEventWithLatencyInfo& gesture_event) {
- if (touch_action_filter_.FilterGestureEvent(gesture_event.event))
+ const GestureEventWithLatencyInfo& original_gesture_event) {
+ GestureEventWithLatencyInfo gesture_event(original_gesture_event);
+ if (touch_action_filter_.FilterGestureEvent(&gesture_event.event))
return;
touch_event_queue_->OnGestureScrollEvent(gesture_event);

Powered by Google App Engine
This is Rietveld 408576698