diff options
author | puresyntax71 <34715246+puresyntax71@users.noreply.github.com> | 2020-01-02 08:06:59 +0300 |
---|---|---|
committer | puresyntax71 <34715246+puresyntax71@users.noreply.github.com> | 2020-01-02 08:06:59 +0300 |
commit | 53a3ed9aefb323d7b1fc369318584f566544de89 (patch) | |
tree | efa7d4cf803e38c6c161eada6ff97c909e78f0a0 /src | |
parent | f4782e165a0322c5c1e86cc295b8156d57aa73dd (diff) |
Add workaround for css.
Diffstat (limited to 'src')
-rw-r--r-- | src/js/App.js | 4 |
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; }); }, |