Skip to content

Commit b6722ab

Browse files
committed
Dunno if this helps.
1 parent a30f76f commit b6722ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/navbar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Navbar {
3535
const currentY = window.scrollY;
3636
const velocityY = currentY - this.lastScrollY;
3737

38-
if (velocityY < -20 || currentY === 0) {
38+
if (velocityY < -20 || currentY <= 0) {
3939
this.showNavbar();
4040
} else if (!this.isOpened && velocityY > 0) {
4141
this.hideNavbar();

0 commit comments

Comments
 (0)