mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
LibWeb: Expose MouseEvent.{screenX,screenY}
These are currently the same as clientX and clientY, but it works for now.
This commit is contained in:
parent
a569d02b0d
commit
d6cfc735ae
|
@ -37,6 +37,10 @@ public:
|
|||
double client_x() const { return m_client_x; }
|
||||
double client_y() const { return m_client_y; }
|
||||
|
||||
// FIXME: Make these actually different from clientX and clientY.
|
||||
double screen_x() const { return m_client_x; }
|
||||
double screen_y() const { return m_client_y; }
|
||||
|
||||
double x() const { return client_x(); }
|
||||
double y() const { return client_y(); }
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ interface MouseEvent : UIEvent {
|
|||
readonly attribute double offsetY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
readonly attribute double screenX;
|
||||
readonly attribute double screenY;
|
||||
readonly attribute double x;
|
||||
readonly attribute double y;
|
||||
|
||||
|
@ -23,4 +25,4 @@ dictionary MouseEventInit : EventModifierInit {
|
|||
|
||||
short button = 0;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue