mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:17:44 +00:00
LibWeb: Expose the MouseEvent::{clientX, clientY} attributes
These provide the cursor coordinate within the viewport at which the event occurred (as opposed to the page relative coordinates exposed via offsetX, offsetY).
This commit is contained in:
parent
815934a95d
commit
ad8e2f481d
5 changed files with 16 additions and 8 deletions
|
@ -2,5 +2,7 @@ interface MouseEvent : Event {
|
|||
|
||||
readonly attribute double offsetX;
|
||||
readonly attribute double offsetY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue