Keep thread from moving off screen when contracted via keybind.

This commit is contained in:
ccd0 2018-11-02 00:03:44 -07:00
parent 83b52f1bb5
commit 2f3a3182ae

View File

@ -182,6 +182,8 @@ Keybinds =
when Conf['Expand thread']
return unless g.VIEW is 'index' and threadRoot
ExpandThread.toggle thread
# Keep thread from moving off screen when contracted.
Header.scrollTo threadRoot
when Conf['Open thread']
return unless g.VIEW is 'index' and threadRoot
Keybinds.open thread