mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-12-04 20:35:47 +11:00
fix: correct scroll behavior for top bar visibility toggle
This commit is contained in:
1 parent
13fa54401f
commit
37d6388244
1 file changed
+2
-2
@@ -86,9 +86,9 @@ function setupScrollTopBar() {
|
||||
if (scrollTop < 80) {
|
||||
body.classList.remove("blog-scrolled");
|
||||
} else if (scrollingDown) {
|
||||
body.classList.add("blog-scrolled");
|
||||
} else {
|
||||
body.classList.remove("blog-scrolled");
|
||||
} else {
|
||||
body.classList.add("blog-scrolled");
|
||||
}
|
||||
};
|
||||
body.addEventListener("scroll", applyState, { passive: true });
|
||||
|
||||
Reference in new issue
Block a user