rintoj / ngx-virtual-scroller

Virtual Scroll displays a virtual, "infinite" list.
https://rintoj.github.io/ngx-virtual-scroller
MIT License
979 stars 295 forks source link

Scroll position changes to the next row every time not yet visible row is filled #470

Open TheoMuffin opened 4 years ago

TheoMuffin commented 4 years ago

The best way to explain this is by example (see stackblitz below):

When the scroll position is set so that roughly half or less of the third visible row is exposed, then the view will automatically show the next row every time a new (not yet visible) row is filled and a new row is made. May need to scroll a bit further down for this to happen. As far as I can tell, this is not a problem using version 1.x.x but affects versions 2.x.x and up to current 4.0.3.

Here's a minimal example to reproduce this issue https://stackblitz.com/edit/angular-ibhfbn?file=src/app/app.component.ts. To reproduce, open in new window so that there's space for multiple columns.