diff --git a/files/assets/js/mobile_navigation_bar.js b/files/assets/js/mobile_navigation_bar.js index d36d56702..3e129a86d 100644 --- a/files/assets/js/mobile_navigation_bar.js +++ b/files/assets/js/mobile_navigation_bar.js @@ -12,7 +12,7 @@ document.getElementsByTagName('body')[0].onscroll = () => { bottomBar.style.transform = "translateY(60px)"; console.log('test 2') } - else if (prevScrollpos < currentScrollPos && (currentScrollPos) >= (document.body.offsetHeight)) { + else if ((currentScrollPos) >= (document.body.offsetHeight)) { bottomBar.style.transform = "translateY(60px)"; console.log(document.body.offsetHeight) console.log((window.innerHeight + currentScrollPos)) @@ -21,10 +21,6 @@ document.getElementsByTagName('body')[0].onscroll = () => { bottomBar.style.transform = "translateY(0px)" console.log('test 1') } - else { - bottomBar.style.transform = "translateY(60px)" - console.log('test 4') - } } // if (topBar != null && dropdown != null) {