From bf246181ac54eaf521d44275510b9b0bcb219b99 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Mon, 6 Dec 2021 21:41:05 -0600 Subject: [PATCH] fix --- files/assets/js/mobile_navigation_bar.js | 2 +- files/templates/default.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/mobile_navigation_bar.js b/files/assets/js/mobile_navigation_bar.js index 5af602aab..b9a043810 100644 --- a/files/assets/js/mobile_navigation_bar.js +++ b/files/assets/js/mobile_navigation_bar.js @@ -16,7 +16,7 @@ document.getElementsByTagName('body')[0].onscroll = () => { bottomBar.style.transform = "translateY(0px)" console.log('test 1') } - else if ((window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) { + else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) { bottomBar.style.transform = "translateY(0px)" console.log('test 3') } diff --git a/files/templates/default.html b/files/templates/default.html index 5d5d2bfcf..4c3697053 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -332,7 +332,7 @@ - + {% if v %}