Skip to content

WheelEvent

Values

asEvent

let asEvent: UiEventsTypes.wheelEvent => EventTypes.event

Parameters

UiEventsTypes.wheelEvent

Return type

EventTypes.event

asMouseEvent

let asMouseEvent: UiEventsTypes.wheelEvent => UiEventsTypes.mouseEvent

Parameters

UiEventsTypes.wheelEvent

Return type

UiEventsTypes.mouseEvent

asUIEvent

let asUIEvent: UiEventsTypes.wheelEvent => UiEventsTypes.uiEvent

Parameters

UiEventsTypes.wheelEvent

Return type

UiEventsTypes.uiEvent

composedPath

Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. Read more on MDN

let composedPath: UiEventsTypes.wheelEvent => array<EventTypes.eventTarget>

Parameters

UiEventsTypes.wheelEvent

Return type

array< EventTypes.eventTarget >

getModifierState

let getModifierState: (UiEventsTypes.wheelEvent, string) => bool

Parameters

UiEventsTypes.wheelEvent string

Return type

bool

make

let make: (
~type_: string,
~eventInitDict: UiEventsTypes.wheelEventInit=?,
) => UiEventsTypes.wheelEvent

Parameters

string option< UiEventsTypes.wheelEventInit >

Return type

UiEventsTypes.wheelEvent

preventDefault

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. Read more on MDN

let preventDefault: UiEventsTypes.wheelEvent => unit

Parameters

UiEventsTypes.wheelEvent

Return type

unit

stopImmediatePropagation

Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. Read more on MDN

let stopImmediatePropagation: UiEventsTypes.wheelEvent => unit

Parameters

UiEventsTypes.wheelEvent

Return type

unit

stopPropagation

When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. Read more on MDN

let stopPropagation: UiEventsTypes.wheelEvent => unit

Parameters

UiEventsTypes.wheelEvent

Return type

unit