From dbcf588befff831267cad1eed5fa3c6777efe95d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 3 Nov 2018 20:47:54 -0700 Subject: [PATCH] Here it's more appropriate to maintain the position of the bottom of the thread than to scroll up to the top. --- src/Monitoring/UnreadIndex.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Monitoring/UnreadIndex.coffee b/src/Monitoring/UnreadIndex.coffee index 92b2177b8..184f86003 100644 --- a/src/Monitoring/UnreadIndex.coffee +++ b/src/Monitoring/UnreadIndex.coffee @@ -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