Open brianchirls opened 7 years ago
This will prevent weirdness when the requestAnimationFrame is not running because the window/tab is in the background.
requestAnimationFrame
document.hidden
"visibilitychange" if
This will prevent weirdness when the
requestAnimationFrame
is not running because the window/tab is in the background.document.hidden
"visibilitychange" if
document.hidden`"visibilitychange" if
document.hidden`"visibilitychange" if
!document.hidden`