vue-virtual-scroll-list
vue-virtual-scroll-list copied to clipboard
How to get first and last visible item in the virtual list
- Currently there seems to be no way to do this
- The Scroll event simply returns a range that includes buffered items as well
- We have a getOffset() method
- There s no method to get the sizes of all items so that you can do some math (I have a dynamic item height list where each item may have a different size)
- One way i can think of is to assign an id to each of the rendered items or assign a ref to all of them and then compare their top with current offset, is there a better way?
- Any one mind sharing some ideas or suggestions on how to achieve this?