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

Unified Diff: content/common/input/synthetic_web_input_event_builders.cc

Issue 1971273002: Touch Action could cause wheel gestures to be filtered. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make test separate Created 4 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 | « content/common/input/synthetic_web_input_event_builders.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/synthetic_web_input_event_builders.cc
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc
index c68c689c09be8fa8ac679127f4477d997c4d25cf..e7e7d49176a13a81de4ade4130cdb6e7eb061e1d 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -118,9 +118,10 @@ WebGestureEvent SyntheticWebGestureEventBuilder::Build(
WebGestureEvent SyntheticWebGestureEventBuilder::BuildScrollBegin(
float dx_hint,
- float dy_hint) {
- WebGestureEvent result = Build(WebInputEvent::GestureScrollBegin,
- blink::WebGestureDeviceTouchscreen);
+ float dy_hint,
+ blink::WebGestureDevice source_device) {
+ WebGestureEvent result =
+ Build(WebInputEvent::GestureScrollBegin, source_device);
result.data.scrollBegin.deltaXHint = dx_hint;
result.data.scrollBegin.deltaYHint = dy_hint;
return result;
« no previous file with comments | « content/common/input/synthetic_web_input_event_builders.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698