File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ img {
112
112
max-width : fill-available ;
113
113
box-shadow : $hover-box-shadow ;
114
114
border : $hover-box-border ;
115
+ max-height : 65vh ;
115
116
}
116
117
117
118
blockquote {
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ class Navbar {
49
49
const velocityY = currentY - this . y
50
50
const accelerationY = velocityY - this . velocityY
51
51
52
- if ( this . accelerationY > threshold ) {
52
+ if ( ( - accelerationY ) > threshold && velocityY < 0 ) {
53
53
this . showNavbar ( )
54
54
}
55
- else if ( ! this . isOpened && document . body . scrollHeight > document . body . clientHeight ) {
55
+ else if ( ! this . isOpened && document . body . scrollHeight > document . body . clientHeight && velocityY > 0 && currentY > 0 ) {
56
56
this . hideNavbar ( )
57
57
}
58
58
this . y = currentY
You can’t perform that action at this time.
0 commit comments