I’m having two problems on Android (Chrome) that may or may not be related. I’ve created a playground here to illustrate, in case it helps: https://playground.babylonjs.com/#NWW1K1#10
I load in a babylon file and place a red sphere directly below the camera (you’ll need to look down). I use the following code to detect when the user touches the sphere:
sphere.actionManager = new BABYLON.ActionManager(scene);
sphere.actionManager.registerAction(
new BABYLON.ExecuteCodeAction(
BABYLON.ActionManager.OnPickTrigger,
() => {
console.log("test");
},
),
);
It works well in Chrome on my desktop. But when I use Chrome on my Android G6 (even before entering VR mode), I get the following two problems:
- The screen flashes blue on touch. Can that be disabled?
- More importantly, the camera occasionally jumps away from the sphere, and then quickly jumps back. It’s almost as if babylon is briefly switching to a different camera. This can be quite jarring at times. But it doesn’t happen with every touch, and it never happens on desktop.
Would this be a question for @trevordev ?
Thanks in advance for your help.