BabylonJS version: 4.1.0 (npmjs)
OS: MacOS Catalina 10.15.3
Browser: Firefox 74.0
VR Device: No VR headset connected.
When I enter full screen with:
I get true from:
I would expect to get false as the browser is not in VR simulation mode.
Another observation: when I have once entered VR mode then the normal full screen is always entered in pointer lock mode all though before using VR mode the normal full screen was entered without pointer lock mode.
I’ll look into that. I would expect the same
Regarding the pointer lock - as VR requests pointerlock, it caches the request and continues using it. Instead of using canvas.requestFullscreen, use the engine’s
enterFullscreen , specifying whether you want pointerlock or not.
You can also disable the pointerlock request -
About fullscreen - i see the place in code where it is being done. Without digging too much, I guess there was a good reason to do that, when it was done. As WebVR is deprecated, i try not to play around with the vr experience helper too much.
If you want to create an issue for this on github, I will see when I find time to check this thoroughly.