Skip to content

Commit 2fa46e4

Browse files
committed
Show at top.
1 parent d31d12e commit 2fa46e4

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
@@ -52,7 +52,7 @@ class Navbar {
5252
const jerkY = accelerationY - this.accelerationY
5353

5454

55-
if ((-jerkY) > threshold && velocityY < 0) {
55+
if (((-jerkY) > threshold && velocityY < 0) || y === 0) {
5656
this.showNavbar()
5757
}
5858
else if (!this.isOpened && document.body.scrollHeight > document.body.clientHeight && velocityY > 0 && y > 0) {

0 commit comments

Comments
 (0)