From 02fa06d4ef74b2096b64730b0ea2501e900c09ec Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 22 Jul 2019 17:19:33 -0700 Subject: [PATCH] Nav.getThread() should always return current thread in thread view regardless of scrolling. --- src/Miscellaneous/Nav.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Miscellaneous/Nav.coffee b/src/Miscellaneous/Nav.coffee index ff2a0885f..8cfd93294 100644 --- a/src/Miscellaneous/Nav.coffee +++ b/src/Miscellaneous/Nav.coffee @@ -39,6 +39,7 @@ Nav = Nav.scroll +1 getThread: -> + return g.threads["#{g.BOARD}.#{g.THREADID}"].nodes.root if g.VIEW is 'thread' return if $.hasClass doc, 'catalog-mode' for threadRoot in $$ g.SITE.selectors.thread thread = Get.threadFromRoot threadRoot