mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibWeb: Add MouseEvent.x and MouseEvent.y
Per the CSSOM View spec, these are aliases for clientX and clientY.
This commit is contained in:
parent
8964f754f5
commit
438c5bce6c
2 changed files with 6 additions and 0 deletions
|
@ -25,9 +25,13 @@ public:
|
|||
|
||||
double offset_x() const { return m_offset_x; }
|
||||
double offset_y() const { return m_offset_y; }
|
||||
|
||||
double client_x() const { return m_client_x; }
|
||||
double client_y() const { return m_client_y; }
|
||||
|
||||
double x() const { return client_x(); }
|
||||
double y() const { return client_y(); }
|
||||
|
||||
protected:
|
||||
MouseEvent(const FlyString& event_name, double offset_x, double offset_y, double client_x, double client_y);
|
||||
|
||||
|
|
|
@ -4,5 +4,7 @@ interface MouseEvent : UIEvent {
|
|||
readonly attribute double offsetY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
readonly attribute double x;
|
||||
readonly attribute double y;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue