XRSession: squeezeend event
The WebXR event squeezeend
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 squeeze 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 | onsqueezeend |
For details on how the squeezestart
, squeeze
, and squeezeend
events work, and how you should react to them, see Primary squeeze actions in Inputs and input sources.
Examples
See squeezestart_event
for example code.
Specifications
Specification |
---|
WebXR Device API # eventdef-xrsession-squeezeend |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
squeezeend_event |
83 |
83 |
No |
No |
No |
No |
No |
83 |
No |
No |
No |
13.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XRSession/squeezeend_event