Ng-repeat in horizontal ion-scroll with windowed array


#1

Hi everyone,

I’m trying to make a horizontal ion-scroll host a ng-repeat with items that are loaded on-demand from a Firebase data repo.

JSFiddle here: https://jsfiddle.net/0nqurL7d/2/

Try scrolling the elements to the right.

My problem is that the when the items are scrolled, and therefore extra data is loaded, the windowing causes the removal of previous items which makes the ion-scroll jump by the amount of items removed.

Is there any way to smoothen this behaviour? I.e. prevent the element removal from making the items jump to the left?

Thanks a lot for your ideas!

Edouard