1
Fork 0
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:
Igor Pissolati 2022-04-09 12:44:42 -03:00 committed by Andreas Kling
parent a2bc97a9c2
commit 1b94b4c593
6 changed files with 75 additions and 18 deletions

View file

@ -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;
};