Unread scroll asap, waiting can create undesired scrolls. #1070

This commit is contained in:
Mayhem 2013-05-04 20:42:26 +02:00
parent 9b3628b5ae
commit fc0890049d

View File

@ -23,7 +23,6 @@ Unread =
$.on d, 'ThreadUpdate', Unread.onUpdate
$.on d, 'scroll visibilitychange', Unread.read
$.on d, 'visibilitychange', Unread.setLine if Conf['Unread Line']
$.on window, 'load', Unread.scroll if Conf['Scroll to Last Read Post']
ready: ->
$.off d, '4chanXInitFinished', Unread.ready
@ -31,6 +30,7 @@ Unread =
for ID, post of Unread.thread.posts
posts.push post if post.isReply
Unread.addPosts posts
Unread.scroll()
scroll: ->
# Let the header's onload callback handle it.