Index: chrome/browser/android/vr_shell/vr_shell_gl.cc |
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.cc b/chrome/browser/android/vr_shell/vr_shell_gl.cc |
index 363b0108ce5b58e517856080c76fc97d8f85b480..240ed9a38b5043ad11dd6fa6728450e027cafdc0 100644 |
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc |
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc |
@@ -117,8 +117,7 @@ std::unique_ptr<blink::WebMouseEvent> MakeMouseEvent(WebInputEvent::Type type, |
std::unique_ptr<blink::WebMouseEvent> mouse_event(new blink::WebMouseEvent( |
type, blink::WebInputEvent::NoModifiers, timestamp)); |
mouse_event->pointerType = blink::WebPointerProperties::PointerType::Mouse; |
- mouse_event->x = x; |
- mouse_event->y = y; |
+ mouse_event->setPositionInWidget(x, y); |
mouse_event->clickCount = 1; |
return mouse_event; |