This commit is contained in:
kek7198 2021-12-11 15:17:26 -06:00
parent 91f3bbe35c
commit 812c3dd283

View file

@ -8,7 +8,7 @@ document.getElementsByTagName('body')[0].onscroll = () => {
// var navbar = document.getElementById("navbar"); // var navbar = document.getElementById("navbar");
if (bottomBar != null) { if (bottomBar != null) {
if (currentScrollPos <= 60 || (currentScrollPos >= document.body.offsetHeight)) { if (currentScrollPos <= 60 || (currentScrollPos >= document.body.offsetHeight - 60)) {
bottomBar.style.transform = "translateY(60px)"; bottomBar.style.transform = "translateY(60px)";
} }
else if (prevScrollpos > currentScrollPos) { else if (prevScrollpos > currentScrollPos) {