fix: use @utility for animate-blink, call handleScroll on mount

This commit is contained in:
2026-03-31 02:26:22 +02:00
parent d55e41992d
commit a3e3f53548
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ export default function ReadingProgress() {
}
};
handleScroll();
window.addEventListener("scroll", handleScroll, { passive: true });
return () => window.removeEventListener("scroll", handleScroll);
}, []);