Here it's more appropriate to maintain the position of the bottom of the thread than to scroll up to the top.
This commit is contained in:
parent
23b8523cd7
commit
dbcf588bef
@ -109,8 +109,9 @@ UnreadIndex =
|
||||
$.rm UnreadIndex.hr[thread.fullID]
|
||||
thread.nodes.root.classList.remove 'unread-thread'
|
||||
if thread.ID of ExpandThread.statuses
|
||||
{bottom} = thread.nodes.root.getBoundingClientRect()
|
||||
ExpandThread.toggle thread
|
||||
Header.scrollToIfNeeded thread.nodes.root
|
||||
window.scrollBy 0, (thread.nodes.root.getBoundingClientRect().bottom - bottom)
|
||||
ThreadWatcher.update thread.board.ID, thread.ID,
|
||||
unread: 0
|
||||
quotingYou: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user