Closed galfert closed 5 years ago
There's still a small issue with it suddenly jumping up a bit when scrolling through long histories. But it's such a huge improvement over what we have, that I'd say let's merge it and do shaping afterwards, in separate PRs.
Great job, @galfert!
Closes #92
This displays only the last 30 messages when opening a channel to improve the rendering speed. More messages are then displayed when scrolling up to the top of the page.
This PR is a replacement for #162 and should fix all the remaining problems that PR still had.
The code is also much cleaner/simpler. It uses the scrolling-observer component introduced in #166 both for rendering more messages when scrolling up, as well as enabling/disabling automatic scrolling when scrolling down.