fix
This commit is contained in:
parent
06e4b61481
commit
da9da85dd4
1 changed files with 0 additions and 3 deletions
|
@ -10,12 +10,9 @@ document.getElementsByTagName('body')[0].onscroll = () => {
|
|||
if (bottomBar != null) {
|
||||
if (currentScrollPos <= 60 || currentScrollPos >= document.body.offsetHeight - 100) {
|
||||
bottomBar.style.transform = "translateY(60px)";
|
||||
console.log('test 2')
|
||||
}
|
||||
else if (prevScrollpos > currentScrollPos && currentScrollPos < document.body.offsetHeight - 100) {
|
||||
bottomBar.style.transform = "translateY(0px)"
|
||||
console.log(currentScrollPos)
|
||||
console.log(document.body.offsetHeight)
|
||||
}
|
||||
else {
|
||||
bottomBar.style.transform = "translateY(60px)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue