fix: correct scroll behavior for top bar visibility toggle

This commit is contained in:
litruv committed 2026-05-11 18:50:12 +10:00
1 parent 13fa54401f
commit 37d6388244
1 file changed
+2 -2
+2 -2
View File
@@ -86,9 +86,9 @@ function setupScrollTopBar() {
if (scrollTop < 80) { if (scrollTop < 80) {
body.classList.remove("blog-scrolled"); body.classList.remove("blog-scrolled");
} else if (scrollingDown) { } else if (scrollingDown) {
body.classList.add("blog-scrolled");
} else {
body.classList.remove("blog-scrolled"); body.classList.remove("blog-scrolled");
} else {
body.classList.add("blog-scrolled");
} }
}; };
body.addEventListener("scroll", applyState, { passive: true }); body.addEventListener("scroll", applyState, { passive: true });