Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.75k stars 916 forks source link

Update skipped for large row heights #834

Open pbaern opened 1 year ago

pbaern commented 1 year ago

Describe the bug

Since a recent commit to the RecycleScroller, no update event is emitted if the user scrolls away from the startIndex less than the minItemSize. But for large rows, this minItemSize can be larger than the height of the scroller, so when scrolling to the bottom of the first row (making the second row visible) no update event is triggered.

This is not a problem when increasing the buffer prop to at least the row height, but it should be handled automatically by the component.

Reproduction

Scroll to the second row for rows of height larger than the height of the scroller/page. Observe that the initially emitted update has an end index of 1 and no new update event is emitted when reaching the second row.

System Info

OS: Any, Browser: Any

Used Package Manager

npm

Validations