This commit is contained in:
kek7198 2021-12-06 22:20:16 -06:00
parent 90d17139d8
commit 23aeb1e7b2

View file

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