Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WebXR Haptics example when entering VR from Oculus Browser button #30859

Merged
merged 2 commits into from
Apr 7, 2025

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