mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Support MouseEvent.{pageX,pageY}
Unlike client{X,Y} which is relative to the current viewport, these
offsets are relative to the left edge of the document (i.e they take
scroll offset into account).
This commit is contained in:
parent
f6862a4203
commit
a802fb2023
Notes:
sideshowbarker
2024-07-17 11:30:05 +09:00
Author: https://github.com/itamar8910
Commit: a802fb2023
Pull-request: https://github.com/SerenityOS/serenity/pull/16742
5 changed files with 37 additions and 8 deletions
|
|
@ -10,6 +10,8 @@ interface MouseEvent : UIEvent {
|
|||
readonly attribute double screenY;
|
||||
readonly attribute double x;
|
||||
readonly attribute double y;
|
||||
readonly attribute double pageX;
|
||||
readonly attribute double pageY;
|
||||
|
||||
readonly attribute short button;
|
||||
readonly attribute unsigned short buttons;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue