Camera still moves to the scene when switching tabs

Hi Everyone!

I just noticed in this space that in this playground, when you press the down keyboard and switch to a different browser tab and release it, when you click back the camera still moves. It only stops when you press down key again.

Is there are way to prevent this or be able to catch this ?


ping @PolygonalSun

Hey @VtuberFan, I was able to repro this. I’m gonna dig in to see what’s going on. I suspect that there’s an issue with handling the blur event.


Fix is in PR: DeviceInputSystem: Fix for keyboard blur not being recognized by PolygonalSun · Pull Request #11212 · BabylonJS/Babylon.js (


Thanks for the support @PolygonalSun, would you happen to know the estimated time that it will be deployed?

It will be in the next nightly later today

1 Like