As for documentation on modern browser when a page is inactive an hidden/pause event should be raised. I tried :
this.events.on(‘hidden’,()=>{
console.log(‘hidden’)
})
this.events.on(‘pause’,()=>{
console.log(‘pause’)
})
But it seems that these events never get called (“this” is the GameScene) whilst the pre-render and render events are fired. So how can detect when window is hidden or inactive. Thank you