fix
This commit is contained in:
parent
90d17139d8
commit
23aeb1e7b2
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue