Reset static content 42s timer on scroll — user is still reading

This commit is contained in:
russell@unturf.com 2026-02-08 13:13:01 -05:00
parent 9841013306
commit 309c291a92

View file

@ -543,7 +543,14 @@
setupMediaEvents();
} else {
// Static content (PDF, image, etc.) — start 42-second timer
// Reset on scroll — scrolling means the user is still reading
startStaticTimer();
window.addEventListener('scroll', function() {
if (!activeMedia && autoplayEnabled) {
cancelCountdown();
startStaticTimer();
}
});
}
// --- Event delegation for SPA link interception ---