diff --git a/files/assets/js/mobile_navigation_bar.js b/files/assets/js/mobile_navigation_bar.js index 57fed258e..0b5003eb3 100644 --- a/files/assets/js/mobile_navigation_bar.js +++ b/files/assets/js/mobile_navigation_bar.js @@ -9,11 +9,11 @@ document.getElementsByTagName('body')[0].onscroll = () => { if (bottomBar != null) { if (currentScrollPos <= 60 && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 100)) { - bottomBar.style.transform = "translateY(0px)"; + bottomBar.style.transform = "translateY(60px)"; console.log('test 2') } else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) { - bottomBar.style.transform = "translateY(60px)" + bottomBar.style.transform = "translateY(0px)" console.log('test 1') } else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) {