Akryum / vue-virtual-scroller

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

Update skipped for large row heights #834

Open pbaern opened 8 months ago

pbaern commented 8 months 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