From ae0802479cdb0e05a359111b1a69b9f0b60045af Mon Sep 17 00:00:00 2001 From: kek7198 Date: Mon, 6 Dec 2021 21:29:14 -0600 Subject: [PATCH] fix --- files/assets/js/mobile_navigation_bar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {