BABYLON.GizmoManager - crashes when using VRHelper

https://www.babylonjs-playground.com/#RL9DPY#6

Steps to reproduce
Run above playground
Enable VR
Click on cube mesh
Try to use gizmo touch points

Expected Result:
The gizmo will rotate and scale mesh

Actual Result:
babylon.js:16 Uncaught TypeError: Cannot read property ‘attachedElement’ of undefined
at e._startDrag (babylon.js:16)
at Object.callback (babylon.js:16)
at e.notifyObservers (babylon.js:16)
at Object.callback (babylon.js:16)
at e.notifyObservers (babylon.js:16)
at e._checkPrePointerObservable (babylon.js:16)
at e.simulatePointerDown (babylon.js:16)
at t.simulatePointerDown (babylon.js:16)
at t.e._selectionPointerDown (babylon.js:16)
at Object.callback (babylon.js:16)

Pinging @Cedric

I’m taking a look.

PG works fine with Chrome. I get issues with Firefox and Edge. I think it’s related to the browser/inputs. I keep investigating.

@millenniummike what’s the browser you used?

PR merged check activeCamera.inputs by CedricGuillemet · Pull Request #6735 · BabylonJS/Babylon.js · GitHub

I was using the Oculus Quest browser which I thought was Chromium… I see you’ve updated code so I’ll try it out.

Good stuff… It’s working in Oculus Browser…

3 Likes