| Index: content/browser/renderer_host/input/touch_emulator.cc
|
| diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
|
| index 2991879d50ac1c798c0a295b4666fb641fb1b769..d7cdcdd86b95c06a85c7deab1560f37e6d01bdeb 100644
|
| --- a/content/browser/renderer_host/input/touch_emulator.cc
|
| +++ b/content/browser/renderer_host/input/touch_emulator.cc
|
| @@ -159,7 +159,8 @@ bool TouchEmulator::HandleMouseEvent(const WebMouseEvent& mouse_event) {
|
|
|
| if (mouse_event.button == WebMouseEvent::Button::Right &&
|
| mouse_event.type() == WebInputEvent::MouseDown) {
|
| - client_->ShowContextMenuAtPoint(gfx::Point(mouse_event.x, mouse_event.y));
|
| + client_->ShowContextMenuAtPoint(
|
| + gfx::Point(mouse_event.position.x, mouse_event.position.y));
|
| }
|
|
|
| if (mouse_event.button != WebMouseEvent::Button::Left)
|
| @@ -463,10 +464,10 @@ void TouchEmulator::FillTouchEventAndPoint(const WebMouseEvent& mouse_event) {
|
| point.radiusY = 0.5f * cursor_size_.height();
|
| point.force = eventType == WebInputEvent::TouchEnd ? 0.f : 1.f;
|
| point.rotationAngle = 0.f;
|
| - point.position.x = mouse_event.x;
|
| - point.screenPosition.x = mouse_event.globalX;
|
| - point.position.y = mouse_event.y;
|
| - point.screenPosition.y = mouse_event.globalY;
|
| + point.position.x = mouse_event.position.x;
|
| + point.screenPosition.x = mouse_event.screenPosition.x;
|
| + point.position.y = mouse_event.position.y;
|
| + point.screenPosition.y = mouse_event.screenPosition.y;
|
| point.tiltX = 0;
|
| point.tiltY = 0;
|
| point.pointerType = blink::WebPointerProperties::PointerType::Touch;
|
|
|