improved playback

This commit is contained in:
2025-09-24 14:21:53 -04:00
parent 40cfb7d874
commit cf51e857f8
5 changed files with 26 additions and 53 deletions
-6
View File
@@ -1,6 +0,0 @@
document.addEventListener("visibilitychange", (e) =>{
// document.visibilityState will be "visible" or "hidden" (or "prerender) if it's important
if (Howler.ctx.state !== "running") { // better to check on !=="running" as you are doing
Howler.ctx.resume();
}
});