XRSession: selectend event

The WebXR event selectend is sent to an XRSession when one of its input sources ends its primary action or when an input source that's in the process of handling an ongoing primary action is disconnected without successfully completing the action.

Primary actions include things like users pressing triggers or buttons, tapping a touchpad, speaking a command, or performing a recognizable gesture when using a video tracking system or handheld controller with an accelerometer.

Bubbles Yes
Cancelable No
Interface XRInputSourceEvent
Event handler property onselectend

For details on how the selectstart, select, and selectend events work, and how you should react to them, see Primary actions in Inputs and input sources.

Examples

See selectstart_event for example code.

Specifications

Specification
WebXR Device API
# eventdef-xrsession-selectend

Browser compatibility

BCD tables only load in the browser