Fix autoscroll.
I... uh, was dumb. Yeah.
This commit is contained in:
parent
37fd02450c
commit
5db027356e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -481,7 +481,8 @@ div.center:not(.ad-cnt) {
|
||||
:root.thread #index-menu,
|
||||
:root.index-loading .navLinks,
|
||||
:root.index-loading .board,
|
||||
:root.index-loading .pagelist {
|
||||
:root.index-loading .pagelist,
|
||||
:root.thread .pagelist {
|
||||
display: none;
|
||||
}
|
||||
.index:not(.catalog-mode) #returnlink {
|
||||
|
||||
@ -334,6 +334,8 @@ ThreadUpdater =
|
||||
ThreadUpdater.lastPost = posts[count - 1].ID
|
||||
Main.callbackNodes Post, posts
|
||||
|
||||
scroll = Conf['Auto Scroll'] and ThreadUpdater.scrollBG() and Header.getBottomOf(ThreadUpdater.root) > -75
|
||||
|
||||
for post in posts
|
||||
{root} = post.nodes
|
||||
if post.cb
|
||||
@ -343,7 +345,7 @@ ThreadUpdater =
|
||||
$.add ThreadUpdater.root, root
|
||||
|
||||
sendEvent()
|
||||
if Conf['Auto Scroll'] and ThreadUpdater.scrollBG() and Header.getBottomOf(ThreadUpdater.root) > -25
|
||||
if scroll
|
||||
if Conf['Bottom Scroll']
|
||||
window.scrollTo 0, d.body.clientHeight
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user