This commit is contained in:
kek7198 2021-12-06 21:13:34 -06:00
parent 8180200639
commit 05044ac9ad

View file

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