mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Always trigger an input sources change event on session creation
This commit is contained in:
parent
5f55cd5d71
commit
09a23b0cb1
3 changed files with 47 additions and 24 deletions
|
@ -284,7 +284,6 @@ impl XR {
|
|||
return;
|
||||
},
|
||||
};
|
||||
|
||||
let session = XRSession::new(&self.global(), session, mode, frame_receiver);
|
||||
if mode == XRSessionMode::Inline {
|
||||
self.active_inline_sessions
|
||||
|
@ -294,6 +293,9 @@ impl XR {
|
|||
self.set_active_immersive_session(&session);
|
||||
}
|
||||
promise.resolve_native(&session);
|
||||
// https://github.com/immersive-web/webxr/issues/961
|
||||
// This must be called _after_ the promise is resolved
|
||||
session.setup_initial_inputs();
|
||||
}
|
||||
|
||||
pub fn get_displays(&self) -> Result<Vec<DomRoot<VRDisplay>>, ()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue