Answer the question
In order to leave comments, you need to log in
How to avoid jump scrolling when adding new items to the list?
I am developing a chat and need to implement the loading of old messages. When the user has scrolled to the top of the page, I request a new message block and insert it at the top of the list, then calculate how much space this new block has taken up and scroll down by that value. And during this process, you can notice a short jump in the list. How can this be avoided?
demo is here
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question