Scroling up in Ionic Chat style


#1

I have run into this issue that I have not been able to get past.
I have an infinite scroll “top”. And my initial data loads bottom to top (chat-like). And I am pre-pending items (chat-like) using an array. I fetch 20 rows and as I users scroll up, I fetch 20 more from DB.
Issue: Every time I add items to the top of the array the scroll just jumps to the top, instead of remaining at the current position. This causes an unpleasant experience for users. I have implemented quite a few online solutions but none seem to work.
Any insights would be helpful. I am using ionic 4