mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1556556
- Document WidgetEvent::mRefPoint as being in visual coordinates. r=kats
This is already the case for real input events since that's how they arrive from APZ, and we are no longer changing the coordinates at the process boundary. For synthesized events, a future patch will add layout-to-visual converions to code that sets mRefPoint as appropriate. Differential Revision: https://phabricator.services.mozilla.com/D68917
This commit is contained in:
parent
0e4ceea622
commit
6bda5b208d
@ -559,6 +559,9 @@ class WidgetEvent : public WidgetEventTime {
|
||||
EventMessage mMessage;
|
||||
// Relative to the widget of the event, or if there is no widget then it is
|
||||
// in screen coordinates. Not modified by layout code.
|
||||
// This is in visual coordinates, i.e. the correct RelativeTo value that
|
||||
// expresses what this is relative to is `{viewportFrame, Visual}`, where
|
||||
// `viewportFrame` is the viewport frame of the widget's root document.
|
||||
LayoutDeviceIntPoint mRefPoint;
|
||||
// The previous mRefPoint, if known, used to calculate mouse movement deltas.
|
||||
LayoutDeviceIntPoint mLastRefPoint;
|
||||
|
Loading…
Reference in New Issue
Block a user