This commit is contained in:
kek7198 2021-12-12 22:58:25 -06:00
parent 47cf6095dd
commit c82a43e0d9

View file

@ -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)";
}