WebXR: Set isPresenting
flag before dispatching sessionstart
event
#18350
Labels
isPresenting
flag before dispatching sessionstart
event
#18350
Description of the problem
While starting an XR session,
sessionstart
event is dispatched from WebXRManager.js after a successful XR session has been established. After that, theisPresenting
flag is set to true. As a result when we add an event listener forsessionstart
, in the callback functionisPresenting
is returning false.Is this behavior intentional? I think we should set the flag true before dispatching the event.
Three.js version
The text was updated successfully, but these errors were encountered: