WheelEvent
The WheelEvent interface represents events that occur due to the user moving a mouse wheel or similar input device.
Documentation WheelEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Static Members
DOM_DELTA_PIXEL: IntDOM_DELTA_LINE: IntDOM_DELTA_PAGE: IntInstance Members
deltaX: FloatReturns a double representing the horizontal scroll amount.
deltaY: FloatReturns a double representing the vertical scroll amount.
deltaZ: FloatReturns a double representing the scroll amount for the z-axis.
deltaMode: IntReturns an unsigned long representing the unit of the delta values scroll amount. Permitted values are:
| Constant | Value | Description |
DOM_DELTA_PIXEL |
0x00 |
The delta values are specified in pixels. |
DOM_DELTA_LINE |
0x01 |
The delta values are specified in lines. |
DOM_DELTA_PAGE |
0x02 |
The delta values are specified in pages. |
new(type: String, ?eventInitDict: Null<WheelEventInit>): Void| Name | Type | Default |
|---|---|---|
type |
String | |
eventInitDict |
Null<WheelEventInit> | (optional) |