fix: better big screen navigation scroll
This commit is contained in:
parent
db60d95d9c
commit
b46dff280d
2 changed files with 4 additions and 1 deletions
|
|
@ -194,7 +194,9 @@ function enableTag(node) {
|
|||
closeMenu()
|
||||
document.getElementsByClassName('content')[0].scrollIntoView(true)
|
||||
} else {
|
||||
document.getElementsByClassName('up-footer')[0].scrollIntoView(true)
|
||||
if (window.scrollY() > 300) {
|
||||
document.getElementsByClassName('content')[0].scrollIntoView(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue