mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 22:17:45 +00:00
LibWeb: Dispatch "wheel" event
This commit is contained in:
parent
97dc1585b1
commit
501fb1cccb
8 changed files with 176 additions and 12 deletions
22
Userland/Libraries/LibWeb/UIEvents/WheelEvent.idl
Normal file
22
Userland/Libraries/LibWeb/UIEvents/WheelEvent.idl
Normal file
|
@ -0,0 +1,22 @@
|
|||
#import <UIEvents/MouseEvent.idl>
|
||||
|
||||
// https://www.w3.org/TR/uievents/#idl-wheelevent
|
||||
[Exposed=Window]
|
||||
interface WheelEvent : MouseEvent {
|
||||
// DeltaModeCode
|
||||
const unsigned long DOM_DELTA_PIXEL = 0x00;
|
||||
const unsigned long DOM_DELTA_LINE = 0x01;
|
||||
const unsigned long DOM_DELTA_PAGE = 0x02;
|
||||
|
||||
readonly attribute double deltaX;
|
||||
readonly attribute double deltaY;
|
||||
readonly attribute double deltaZ;
|
||||
readonly attribute unsigned long deltaMode;
|
||||
};
|
||||
|
||||
dictionary WheelEventInit : MouseEventInit {
|
||||
double deltaX = 0;
|
||||
double deltaY = 0;
|
||||
double deltaZ = 0;
|
||||
unsigned long deltaMode = 0;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue