Is there a way to distinguish between different browser events in the following scenarios?
- When the user clicks on another tab within the same browser, causing my tab to be hidden and should pause.
- When they switch to another application, with my tab potentially still visible and should continue running.
It seems that identical blur/focus DOM events are triggered in each case, providing no solution.
In simpler terms, can it be determined if a tab is currently being displayed to the user?
(By the way, I do not need this functionality in non-WebGL browsers like IE.)