immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
979 stars 474 forks source link

Input selection sample does weird things if you have multiple none handed inputs #185

Open AdaRoseCannon opened 2 months ago

AdaRoseCannon commented 2 months ago

https://github.com/immersive-web/webxr-samples/blob/main/input-selection.html

This pattern seems to cause the problem.

let i = (ev.inputSource.handedness == "left") ? 0 : 1;
currently_selected_boxes[i] = box;
box.scale = [1.25, 1.25, 1.25];
box.selected = false;