diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2020-05-12 06:38:21 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2020-05-12 06:38:21 +0300 |
commit | 954799961db0d38d3222a2bc3288dc30e0f7a8de (patch) | |
tree | 3ea3066ee68e182772faa8ae4c0601146433427f | |
parent | 02a5a30ec60d079f9b7347766f45ccbd2bcc7ec5 (diff) |
Fixes disappearing header for iOS
-rw-r--r-- | layouts/partials/head.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 997cbc8..7c11285 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -48,6 +48,7 @@ ) {
initialY = currentY;
header.style.top = "0";
+ return;
}
if (currentY - initialY > 60) {
@@ -55,7 +56,7 @@ header.style.top = "-58px";
}
- if (currentY - initialY < -5) {
+ if (currentY - initialY < -5 || currentY < 60) {
initialY = currentY;
header.style.top = "0";
}
|