Skip to content

PointerEvent

Values

asEvent

let asEvent: WebAPI.UIEventsAPI.pointerEvent => WebAPI.EventAPI.event

asMouseEvent

let asMouseEvent: WebAPI.UIEventsAPI.pointerEvent => WebAPI.UIEventsAPI.mouseEvent

asUIEvent

let asUIEvent: WebAPI.UIEventsAPI.pointerEvent => WebAPI.UIEventsAPI.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: WebAPI.UIEventsAPI.pointerEvent => array<
WebAPI.EventAPI.eventTarget,
>

getCoalescedEvents

let getCoalescedEvents: WebAPI.UIEventsAPI.pointerEvent => array<
WebAPI.UIEventsAPI.pointerEvent,
>

getModifierState

let getModifierState: (WebAPI.UIEventsAPI.pointerEvent, string) => bool

Parameters

WebAPI.UIEventsAPI.pointerEvent string

Return type

bool

getPredictedEvents

let getPredictedEvents: WebAPI.UIEventsAPI.pointerEvent => array<
WebAPI.UIEventsAPI.pointerEvent,
>

make

let make: (
~type_: string,
~eventInitDict: WebAPI.UIEventsAPI.pointerEventInit=?,
) => WebAPI.UIEventsAPI.pointerEvent

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: WebAPI.UIEventsAPI.pointerEvent => unit

Parameters

WebAPI.UIEventsAPI.pointerEvent

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: WebAPI.UIEventsAPI.pointerEvent => unit

Parameters

WebAPI.UIEventsAPI.pointerEvent

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: WebAPI.UIEventsAPI.pointerEvent => unit

Parameters

WebAPI.UIEventsAPI.pointerEvent

Return type

unit