vue-virtual-scroll-list icon indicating copy to clipboard operation
vue-virtual-scroll-list copied to clipboard

When scrolling to the bottom item via scrollToIndex during initial rendering, it does not scroll all the way to the bottom.

Open raccoon-ccoder opened this issue 5 months ago • 0 comments

Problem

  • When rendering a list with 1000 elements, the following problem occurs:
  • When scrolling to the bottom elements (ex: 990~998) through scrollToIndex, it does not scroll to the bottom.
  • This problem only occurs if you manipulate scrollToIndex immediately after the initial rendering.
  • If I access the bottom element via scrollToIndex after a bit of scrolling after the initial render, it works fine.

The example code below will scroll to the 998th element out of 1000 when the button is clicked. Scrolling to the middle element via scrollToIndex works fine, but scrolling to the bottom element doesn't work properly. I don't know why https://codesandbox.io/p/sandbox/live-demo-virtual-list-forked-d3s7nw?file=%2Fsrc%2Fdata.js%3A12%2C18

This is a test video for example.

https://github.com/user-attachments/assets/12f85c34-3c4c-4fe0-ae07-893e70be686e

raccoon-ccoder avatar Jul 14 '25 00:07 raccoon-ccoder