fix
This commit is contained in:
parent
47cf6095dd
commit
c82a43e0d9
1 changed files with 1 additions and 1 deletions
|
@ -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)";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue