fix
This commit is contained in:
parent
5a9918683d
commit
6107bd807d
1 changed files with 3 additions and 3 deletions
|
@ -9,15 +9,15 @@ document.getElementsByTagName('body')[0].onscroll = () => {
|
||||||
|
|
||||||
if (bottomBar != null) {
|
if (bottomBar != null) {
|
||||||
if (currentScrollPos <= 60 || ((window.innerHeight + currentScrollPos) < document.body.offsetHeight)) {
|
if (currentScrollPos <= 60 || ((window.innerHeight + currentScrollPos) < document.body.offsetHeight)) {
|
||||||
console.log('less than 60 greater than offsetHeight');
|
// console.log('less than 60 greater than offsetHeight');
|
||||||
bottomBar.style.transform = "translateY(60px)";
|
bottomBar.style.transform = "translateY(60px)";
|
||||||
}
|
}
|
||||||
else if (prevScrollpos > currentScrollPos) {
|
else if (prevScrollpos > currentScrollPos) {
|
||||||
console.log('prev greater than current');
|
// console.log('prev greater than current');
|
||||||
bottomBar.style.transform = "translateY(0px)"
|
bottomBar.style.transform = "translateY(0px)"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log('else');
|
// console.log('else');
|
||||||
bottomBar.style.transform = "translateY(60px)";
|
bottomBar.style.transform = "translateY(60px)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue