Consider checking in `getClosestTargetElements()` if `#rig` is not at origin anymore then take into account that offset when measure the distance.
See https://github.com/aframevr/aframe/issues/5182
Tested by doing jxr qs #rig sa position 0 0 10 then at that position jxr qs #rig sa position 0 0 0 to go back, which worked, but introduced a vertical offset. Might be related to the adjust-height-in-vr component but probably not as it's only done once entering VR.
Specifically `getClosestTargetElement()` in pinch related events kind of works :
```javascript
selectedElement = getClosestTargetElement(
document.querySelector("#rig").object3D.position.add(event.detail.position )
)
```
Tested by doing `jxr qs #rig sa position 0 0 10` then at that position `jxr qs #rig sa position 0 0 0` to go back, which worked, but introduced a vertical offset. Might be related to the `adjust-height-in-vr` component but probably not as it's only done once entering VR.
Should be fixed by now, probably with https://git.benetou.fr/utopiah/text-code-xr-engine/commit/717ca1aba43c80c739e285543d28071d4558f5b7 and https://git.benetou.fr/utopiah/text-code-xr-engine/commit/1835def7c451b88aca1508e31c31cdec956276db
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Consider checking in
getClosestTargetElements()if#rigis not at origin anymore then take into account that offset when measure the distance.See https://github.com/aframevr/aframe/issues/5182
Specifically
getClosestTargetElement()in pinch related events kind of works :Tested by doing
jxr qs #rig sa position 0 0 10then at that positionjxr qs #rig sa position 0 0 0to go back, which worked, but introduced a vertical offset. Might be related to theadjust-height-in-vrcomponent but probably not as it's only done once entering VR.Should be fixed by now, probably with
717ca1aba4and1835def7c4