1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-24 22:12:07 +00:00
serenity/Userland/Libraries/LibWeb/UIEvents/WheelEvent.idl
Shannon Booth d4a890080d LibWeb: Switch IDL from UseNewAKString to UseDeprecatedAKString
NewAKString is effectively the default for any new IDL interface, so
let's mark this as the default behavior. It also makes it much easier to
figure out whatever interfaces are still left to port over to new AK
String.
2023-09-02 19:23:41 +01:00

22 lines
620 B
Text

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