Fix autoscroll.

I... uh, was dumb. Yeah.
This commit is contained in:
Zixaphir 2014-03-10 12:45:36 -07:00
parent 37fd02450c
commit 5db027356e
4 changed files with 13 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 {

View File

@ -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