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:
-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";
}