diff --git a/files/assets/js/mobile_navigation_bar.js b/files/assets/js/mobile_navigation_bar.js index 1b8fc3f2a..c6d937704 100644 --- a/files/assets/js/mobile_navigation_bar.js +++ b/files/assets/js/mobile_navigation_bar.js @@ -13,17 +13,17 @@ document.getElementsByTagName('body')[0].onscroll = () => { if (bottomBar != null) { if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 65)) { console.log('this translate y 0 works') - bottomBar.style.transform = "translateY(60px)" + bottomBar.style.transform = "translateY(0px)" } else if (currentScrollPos <= 125 && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 65)) { - bottomBar.style.transform = "translateY(0px)"; + bottomBar.style.transform = "translateY(60px)"; } else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 65)) { console.log('this translate y works') - bottomBar.style.transform = "translateY(60px)" + bottomBar.style.transform = "translateY(0px)" } else { - bottomBar.style.transform = "translateY(0px)" + bottomBar.style.transform = "translateY(60px)" } }