Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/ghazal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2020-05-12 06:38:21 +0300
committerDarshan Baral <darshanbaral@gmail.com>2020-05-12 06:38:21 +0300
commit954799961db0d38d3222a2bc3288dc30e0f7a8de (patch)
tree3ea3066ee68e182772faa8ae4c0601146433427f
parent02a5a30ec60d079f9b7347766f45ccbd2bcc7ec5 (diff)
Fixes disappearing header for iOS
-rw-r--r--layouts/partials/head.html3
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";
}