mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03: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
Notes:
sideshowbarker
2024-07-17 04:42:31 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/d6cfc735ae Pull-request: https://github.com/SerenityOS/serenity/pull/15964 Reviewed-by: https://github.com/awesomekling
@ -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 New Issue
Block a user