From 8cfc8bc434550e2656161b13862f5de4366ebf27 Mon Sep 17 00:00:00 2001 From: De-Panther Date: Fri, 15 Jan 2021 01:51:50 +0200 Subject: [PATCH] select event immediately before selectend event --- src/api/XRSession.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/XRSession.js b/src/api/XRSession.js index f18ae4b..9fbfd9b 100644 --- a/src/api/XRSession.js +++ b/src/api/XRSession.js @@ -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);