kamilkp / angular-vs-repeat

Virtual Scroll for AngularJS ngRepeat directive
http://kamilkp.github.io/angular-vs-repeat/
MIT License
818 stars 228 forks source link

Removing item from lists flickers the lists #14

Open MaestroJurko opened 10 years ago

MaestroJurko commented 10 years ago

When I remove an item from the list, the lists flickers.

kamilkp commented 10 years ago

Please always provide a fiddle to an issue like that.

MaestroJurko commented 10 years ago

will do as soon as I have time.

ultraCAO commented 9 years ago

The Flickering is most likely due to that you have EVEN or ODD CSS styling on the repeated items. This happen because when you scroll ONE item is being removed from the top and add ONE to the bottom. so the original ordering of any item that is showing will change, what was EVEN will become ODD and what was ODD will become EVEN. I see a fix for this issue is to having a config option to tell it how many item to remove and add of a time. in the case of EVEN and ODD, setting the item to remove at a time value to 2 will solve it. and set the vs-escess value to something that is more than the default 2.

that is my 2 cents.