From 602e7058ed234db7d18a2225c68323c089fe0622 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 30 Nov 2023 17:11:23 -0500 Subject: static/js/timeago: Cover scroll --- static/js/timeago.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'static') diff --git a/static/js/timeago.ts b/static/js/timeago.ts index 10206e3..edb3e9d 100644 --- a/static/js/timeago.ts +++ b/static/js/timeago.ts @@ -81,6 +81,10 @@ const substitution = setInterval(date, 4); + self.addEventListener("scroll", function () { + date("viewport"); + }); + self.addEventListener("DOMContentLoaded", function () { setTimeout(function () { clearInterval(substitution); -- cgit v1.2.3