From 341f613220c49809878d7f77e64dd8ab511808d5 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Mon, 6 Dec 2021 21:58:57 -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 3e129a86d..b108b17c7 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 ((currentScrollPos) >= (document.body.offsetHeight)) { + else if (prevScrollpos < currentScrollPos || (currentScrollPos) >= (document.body.offsetHeight)) { bottomBar.style.transform = "translateY(60px)"; console.log(document.body.offsetHeight) console.log((window.innerHeight + currentScrollPos)) diff --git a/files/templates/default.html b/files/templates/default.html index 1ed712a0b..0ae4079e1 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -332,7 +332,7 @@ - + {% if v %}