Skip to content

Commit

Permalink
select event immediately before selectend event
Browse files Browse the repository at this point in the history
  • Loading branch information
De-Panther authored and toji committed Jan 20, 2021
1 parent 3a86c04 commit 8cfc8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/XRSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ export default class XRSession extends EventTarget {
return;
}

this[PRIVATE].dispatchInputSourceEvent('selectend', evt.inputSource);

// Sadly, there's no way to make this a user gesture.
this[PRIVATE].dispatchInputSourceEvent('select', evt.inputSource);

this[PRIVATE].dispatchInputSourceEvent('selectend', evt.inputSource);
};
device.addEventListener('@@webxr-polyfill/input-select-end', this[PRIVATE].onSelectEnd);

Expand Down

0 comments on commit 8cfc8bc

Please sign in to comment.