Nav.getThread() should always return current thread in thread view regardless of scrolling.

This commit is contained in:
ccd0 2019-07-22 17:19:33 -07:00
parent 875f2c06a5
commit 02fa06d4ef

View File

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