diff --git a/zebra-report/zebra-spaces.html b/zebra-report/zebra-spaces.html index b8e2aca..500c612 100644 --- a/zebra-report/zebra-spaces.html +++ b/zebra-report/zebra-spaces.html @@ -4058,24 +4058,46 @@ function streamUrlFor(pubHex){ * once. Idempotent install. */ const pendingAutoplay = new Set(); let tapResumeInstalled = false; +let tapResumeRetry = null; +function uninstallTapResume(){ + if (!tapResumeInstalled || !tapResumeRetry) return; + document.removeEventListener('pointerdown', tapResumeRetry); + document.removeEventListener('touchstart', tapResumeRetry); + document.removeEventListener('click', tapResumeRetry); + tapResumeInstalled = false; tapResumeRetry = null; +} function installTapResume(){ if (tapResumeInstalled) return; tapResumeInstalled = true; - const retry = () => { - if (!pendingAutoplay.size) return; + tapResumeRetry = () => { + if (!pendingAutoplay.size){ uninstallTapResume(); return; } + /* The prior load was aborted by the browser when it denied + * autoplay; the