react-xr
react-xr copied to clipboard
RayGrab cannot ungrab if element changes size/shape while it was grabbed
If, for any reason, the ray from RayGrab no longer hits the grabbed object when the trigger is released the onSelectEnd (or onUnsqueeze) event from the object will never fire (since it wasn't hit).
A suggestion could be to move the code that unsets the grabbing controller outside by hooking via useXREvent("onselectend") rather than inline on the object.
Can you confirm this error persists in v6