react-xr icon indicating copy to clipboard operation
react-xr copied to clipboard

RayGrab cannot ungrab if element changes size/shape while it was grabbed

Open svnhub opened this issue 11 months ago • 1 comments

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.

svnhub avatar Mar 19 '24 11:03 svnhub

Can you confirm this error persists in v6

bbohlender avatar Jul 17 '24 07:07 bbohlender