From 7a7ca1009773b77eaa5d8d3720adf9d3247ef512 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Mon, 6 Dec 2021 21:47:19 -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 659fbb4d1..9cc549fb8 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 ((window.innerHeight + currentScrollPos) >= (document.body.offsetHeight)) { + else if (prevScrollpos < currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight)) { bottomBar.style.transform = "translateY(60px)"; console.log('test 3') } diff --git a/files/templates/default.html b/files/templates/default.html index 7c1e12eb2..0e15c97d9 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -332,7 +332,7 @@ - + {% if v %}