Files
ladybird/Libraries/LibWeb/UIEvents/WheelEvent.idl
Shannon Booth cc6e048bd6 LibWeb+LibIDL: Remove support for #import directives during parsing
These no longer serve any purpose now that we run the IDLGenerator
on all of these files at once.
2026-04-24 20:08:29 +02:00

24 lines
727 B
Plaintext

// https://w3c.github.io/pointerevents/#idl-wheelevent
[Exposed=Window]
interface WheelEvent : MouseEvent {
constructor(DOMString type, optional WheelEventInit eventInitDict = {});
// 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;
};
// https://w3c.github.io/pointerevents/#idl-wheeleventinit
dictionary WheelEventInit : MouseEventInit {
double deltaX = 0;
double deltaY = 0;
double deltaZ = 0;
unsigned long deltaMode = 0;
};