-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reply preview improvements and reply preview click smooth scroll #151
Reply preview improvements and reply preview click smooth scroll #151
Conversation
86fc350
to
882b611
Compare
6f8f2dc
to
882b611
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just left one comment/question for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thanks!
which we now use for scrolling up to replies. Highlight a replied-to message upon click (after auto-scroll to it) in a light blue color, which makes it much more obvious. Explicitly specify the default font color of Html widgets.
that have not yet been fetched in the timeline
Use `Vector::focus()` with reverse iteration from the current reply message, searching backwards since the replied-to message must come before the reply message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I made some changes to how we search for the replied-to message in the timeline, mainly just to make it a lot faster.
I found quite a few scenarios where the smooth_scroll_to()
function does not work as expected. Most of them occur when the message is already visible, but at least the highlighting makes it very obvious where the message is. Sometimes it just straight up doesn't work, but since it sounds like you're already working on improving the smooth_scroll_to()
function, we can go ahead and merge this and then add future improvements later.
makes clicking a reply preview trigger a smooth scroll to the item, which is then highlighted.