Skip to content

Conversation

@arturitu
Copy link
Contributor

@arturitu arturitu commented Apr 4, 2025

Fixed #30857.

Description

Fixes a bug where the WebXR Haptics example fails if the user taps "Enter VR" directly from the Oculus Browser button, before interacting with the page. The update ensures proper initialization by explicitly calling initAudio() when entering VR.

@Mugen87
Copy link
Collaborator

Mugen87 commented Apr 4, 2025

Is the line document.getElementById( 'XRButton' ).addEventListener( 'click', initAudio ); now obsolete? I was expecting it is going to be removed...

@Mugen87 Mugen87 added this to the r176 milestone Apr 4, 2025
@Mugen87 Mugen87 merged commit e914484 into mrdoob:dev Apr 7, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebXR Haptics Example Breaks When Entering VR Directly from Oculus Browser UI

2 participants