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

github.com/puresyntax71/hugo-theme-chunky-poster.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpuresyntax71 <34715246+puresyntax71@users.noreply.github.com>2020-01-02 08:06:59 +0300
committerpuresyntax71 <34715246+puresyntax71@users.noreply.github.com>2020-01-02 08:06:59 +0300
commit53a3ed9aefb323d7b1fc369318584f566544de89 (patch)
treeefa7d4cf803e38c6c161eada6ff97c909e78f0a0 /src
parentf4782e165a0322c5c1e86cc295b8156d57aa73dd (diff)
Add workaround for css.
Diffstat (limited to 'src')
-rw-r--r--src/js/App.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/App.js b/src/js/App.js
index cc73697..e1f6e8b 100644
--- a/src/js/App.js
+++ b/src/js/App.js
@@ -87,6 +87,10 @@ export default {
$scroll > $position ? $('#navbar-main-menu.fixed-top').css('top', -$navbarHeight) :
$('#navbar-main-menu.fixed-top').css('top', 0);
+ if ($scroll <= 0) {
+ $('#navbar-main-menu.fixed-top').css('top', 0);
+ }
+
$position = $scroll;
});
},