vue-virtual-scroller
vue-virtual-scroller copied to clipboard
Update skipped for large row heights
trafficstars
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
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.