mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
LibWeb: Bring MouseEvent a bit closer to spec
This commit is contained in:
parent
a2bc97a9c2
commit
1b94b4c593
6 changed files with 75 additions and 18 deletions
|
@ -7,4 +7,18 @@ interface MouseEvent : UIEvent {
|
|||
readonly attribute double x;
|
||||
readonly attribute double y;
|
||||
|
||||
readonly attribute short button;
|
||||
|
||||
};
|
||||
|
||||
dictionary MouseEventInit : EventModifierInit {
|
||||
|
||||
// FIXME: offsetX and offsetY shouldn't be here.
|
||||
double offsetX = 0;
|
||||
double offsetY = 0;
|
||||
double clientX = 0;
|
||||
double clientY = 0;
|
||||
|
||||
short button = 0;
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue