Index: content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
index 0562016edcb431602e8d87a51d2d5cc4a59f1381..9b5e415255704dc843a04533162e08f4f83e7123 100644 |
--- a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc |
@@ -84,7 +84,8 @@ void SyntheticGestureTargetAndroid::DispatchWebTouchEventToPlatform( |
void SyntheticGestureTargetAndroid::DispatchWebMouseWheelEventToPlatform( |
const blink::WebMouseWheelEvent& web_wheel, const ui::LatencyInfo&) { |
JNIEnv* env = base::android::AttachCurrentThread(); |
- TouchSetScrollDeltas(env, web_wheel.x, web_wheel.y, web_wheel.deltaX, |
+ TouchSetScrollDeltas(env, web_wheel.positionInWidget().x, |
+ web_wheel.positionInWidget().y, web_wheel.deltaX, |
web_wheel.deltaY); |
Java_MotionEventSynthesizer_inject( |
env, touch_event_synthesizer_, |