diff --git a/files/assets/js/mobile_navigation_bar.js b/files/assets/js/mobile_navigation_bar.js index 8869e7bdf..e7c7944af 100644 --- a/files/assets/js/mobile_navigation_bar.js +++ b/files/assets/js/mobile_navigation_bar.js @@ -8,7 +8,7 @@ document.getElementsByTagName('body')[0].onscroll = () => { // var navbar = document.getElementById("navbar"); if (bottomBar != null) { - if (currentScrollPos <= 60 || (currentScrollPos >= document.body.offsetHeight)) { + if (currentScrollPos <= 60 || (currentScrollPos >= document.body.offsetHeight - 60)) { bottomBar.style.transform = "translateY(60px)"; } else if (prevScrollpos > currentScrollPos) {