Don't assume that an inputsourceschange event will be fired at the start of the session
See original GitHub issueDescription of the problem
Currently, the three.js code setting up XR controllers only does this setup when an inputsourceschange
event is fired. However, it is possible for a session to start with controllers already attached. My understanding is that Chrome will always fire inputsourceschange
events at the beginning of the session, but I don’t think this is necessary according to the spec. Servo currently just starts off with the correct input sources, only spawning events when things change.
We should instead initialize the controller map when the session is created.
Three.js version
- Dev
- r113
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Hardware Requirements (graphics card, VR Device, …)
- VR Device
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Not firing onChange event · Issue #359 · testing-library/react ...
I have a controlled input element and I cannot capture the onChange event. I would expect the let onChange function of the example...
Read more >Event when window.location.href changes - Stack Overflow
I use this script in my extension "Grab Any Media" and work fine ( like youtube case ) var oldHref = document.location.href; window.onload...
Read more >Window: beforeunload event - Web APIs | MDN
The beforeunload event is fired when the window, the document and its resources are about to be unloaded. The document is still visible...
Read more >Amazon EventBridge event patterns - AWS Documentation
Event patterns have the same structure as the events they match. Rules use event patterns to select events and send them to targets....
Read more >Change events - Unity - Manual
The event triggers after a change assigns a new value to a visual element. You can't cancel change events to prevent a value...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes.
As far as I understand, this issue and the respective PR #18639 can be closed then, right? The tweaks to the specs ensure that
inputsourceschange
should be fired on start by WebXR implementations, correct?