> when switching tabs in browser and returning to the game, it is unpausing automatically
That seems a little odd. What events do you use to pause/unpause? Can you share a screenshot? I just tried with a very basic setup and it doesn't happen for me.
Worst case you can probably work around it with on suspended/resumed conditions but there's possibly some error in your events.
https://www.construct.net/en/make-games/manuals/construct-3/system-reference/system-conditions#internalH1Link10
I'm not doing anything unusual
i.postimg.cc/wB9njx8T/Screenshot-2023-12-03-092424.png
but there is an additional setting that causes this issue "Pause on unfocus"
As I understand this behavior is using a timescale as well and setting the timescale to 1 after the page is in focus again
It is a bug, as for me, because the game should track the timescale on unfocus and set it up to the previous state when will be in focus again.
but yes, we can use focus/unfocus to resolve it