fix
This commit is contained in:
parent
8180200639
commit
05044ac9ad
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue