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:
ccd0 2018-11-03 20:47:54 -07:00
parent 23b8523cd7
commit dbcf588bef

View File

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