meta-quest / immersive-web-emulator

Browser extension that emulates Meta Quest devices for WebXR development. Lead: Felix Zhang (fe1ix@meta.com)
https://developer.oculus.com/blog/webxr-development-immersive-web-emulator/
MIT License
297 stars 34 forks source link

Unexpected `press` or `selectstart` behaviour #53

Closed marwie closed 7 months ago

marwie commented 7 months ago

Hi, see attached video

expected:

actual:

marwie commented 7 months ago

https://github.com/meta-quest/immersive-web-emulator/assets/5083203/e4faac8d-3352-4c2e-b642-a7f993dd00f0

felixtrz commented 7 months ago

This behavior is intentional by design. The 'press' button is not intended for a press-and-hold action. Instead, it executes a complete press-and-release sequence, as demonstrated by the animation of the range selector on the side. If users wish to maintain a specific value, they should adjust the range selector on the side rather than pressing and holding the button. This not only keeps the button pressed, but also provides full control over the value at which the trigger or grip button should be held.