Skip to content

XR Controller events from multiple controllers in AR are sometimes mixed up / multitouch doesn't work #23187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hybridherbst opened this issue Jan 9, 2022 · 1 comment
Labels

Comments

@hybridherbst
Copy link
Contributor

Describe the bug

Seems on touchscreen devices (where input sources can change order when using multiple fingers), XR controller events are sometimes mixed up, which results in incorrect selectstart/selectend events.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://fuchsia-brazen-thorium.glitch.me/ (https://glitch.com/edit/#!/fuchsia-brazen-thorium# to edit)
  2. Open the page on an AR-capable mobile device
  3. Enter AR
  4. Try dragging one object - note that works
  5. Try dragging two objects - note that doesn't work despite having two controllers, sometimes objects get "stuck" to fingers, sometimes nothing happens

Code

Same as on https://threejs.org/examples/?q=vr#webxr_vr_dragging

Live example

Expected behavior

Two fingers multitouch works because there's two controllers (and more fingers should work with more controllers).

Platform:

  • Device: [Mobile]
  • OS: [Android]
  • Browser: [Chrome, Firefox]
  • Three.js version: [dev]
@hybridherbst
Copy link
Contributor Author

Verified again that this should be fixed by #23188, but seems there's some discussion around code clarity there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants