Skip to content

Conversation

kernelkind
Copy link
Member

  • make scroll position go to the correct offset after navigating to a thread
  • make scroll position go to the correct offset after all ancestors are loaded
  • auto unfold thread if there is only one reply, while retaining original scroll offset

didn't work for threads that have never been open

Signed-off-by: kernelkind <[email protected]>
Signed-off-by: kernelkind <[email protected]>
in preparation for thread auto unfolding

Signed-off-by: kernelkind <[email protected]>
Signed-off-by: kernelkind <[email protected]>
threads would flicker on receiving new notes when auto scroll is
enabled. This is because auto scroll is doing the same actions a
user would be doing, which creates children ThreadNodes. These
new children have an empty virtual list when they are created for
the first time. Since it's a new list, there isn't a last width
set, so the flicker gets triggered if hide_on_resize is enabled.

The easiest solution is to simply disable hide_on_resize. The
flicker isn't very noticable to me, but if this isn't acceptable
we can propagate the width to the child nodes (and corresponding
lists) so we could still use the hide_on_resize but not hide on
every thread open.

This flicker was actually happening every time we opened a thread
or reply for the first time, but it wasn't noticible because we
would always be navigating while it happens

Signed-off-by: kernelkind <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant