From c82a43e0d93e392e610df9f4038f042081a41365 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Sun, 12 Dec 2021 22:58:25 -0600 Subject: [PATCH] fix --- files/assets/js/mobile_navigation_bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/mobile_navigation_bar.js b/files/assets/js/mobile_navigation_bar.js index 27c4d2ab9..fefbb8f49 100644 --- a/files/assets/js/mobile_navigation_bar.js +++ b/files/assets/js/mobile_navigation_bar.js @@ -8,7 +8,7 @@ document.getElementsByTagName('body')[0].onscroll = () => { // var navbar = document.getElementById("navbar"); if (bottomBar != null) { - if (currentScrollPos <= 60 || (currentScrollPos >= document.body.offsetHeight)) { + if (currentScrollPos <= 60 || ((window.innerHeight + currentScrollPos) >= document.body.offsetHeight)) { console.log('less than 60 greater than offsetHeight'); bottomBar.style.transform = "translateY(60px)"; }