Index: third_party/WebKit/Source/core/events/MouseEvent.cpp |
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.cpp b/third_party/WebKit/Source/core/events/MouseEvent.cpp |
index 421e8d50d0362b4f19a70b1bf6506d9bc579ecae..7c7fa1ff1caa3e0bf3e0b74f636ba9841f083a57 100644 |
--- a/third_party/WebKit/Source/core/events/MouseEvent.cpp |
+++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp |
@@ -168,7 +168,7 @@ MouseEvent::MouseEvent(const AtomicString& eventType, |
? abstractView->getInputDeviceCapabilities()->firesTouchEvents( |
event.fromTouch()) |
: nullptr), |
- m_screenLocation(event.globalX, event.globalY), |
+ m_screenLocation(event.positionInScreen().x, event.positionInScreen().y), |
m_movementDelta(flooredIntPoint(event.movementInRootFrame())), |
m_positionType(PositionType::Position), |
m_button(static_cast<short>(event.button)), |