-
Notifications
You must be signed in to change notification settings - Fork 687
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
restore scroll position after loading previous messages #496
Conversation
Works fine for me functionality-wise on desktop and mobile. Since the Show More button is hidden when one reaches the end of the message stack, the offset calculation is a bit off when clicking Show More the last time which causes minor flicker. Are there any content that is/could be rendered asynchronously, effectively skewing the height offset? I can't think of any except thumbnails and possibly links, but those aren't expanded on old messages afaik. |
Good catch. @davibe, is it difficult to take this into account?
Not at the moment, I believe.
This seems like a bug, actually, and should be fixed. |
For the flickering caused by button.. we can just remove the button before doing calculations. Dynamically (async) loaded contents should just have a fixed height (css) and, if its needed, they could expand on click one by one. |
Looks fine to me. Please squash those commits and then I'll approve this. If we can fix the small shifting when the last messages are loaded that would be cool as well but this works fine for me as it is. |
Agreed with @maxpoulin64, can you squash these commits please, @davibe? |
@davibe, ping? :) |
I reduced to 1 commit |
👍 |
👍 and merging. |
restore scroll position after loading previous messages
No description provided.