Skip to content

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

Merged
Mugen87 merged 2 commits into
mrdoob:devfrom
arturitu:fix-haptics-oculus
Apr 7, 2025
Merged

Fix WebXR Haptics example when entering VR from Oculus Browser button#30859
Mugen87 merged 2 commits into
mrdoob:devfrom
arturitu:fix-haptics-oculus

Conversation

@arturitu

@arturitu arturitu commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

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

Mugen87 commented Apr 4, 2025

Copy link
Copy Markdown
Collaborator

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
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