vue-virtual-scroller icon indicating copy to clipboard operation
vue-virtual-scroller copied to clipboard

How to render at a certain scroll position?

Open mesqueeb opened this issue 4 years ago • 1 comments
trafficstars

If I have a horizontal virtual scroller with (about 10_000) divs with different widths, is it possible to render the virtual scroller but at the scroll position of a certain index of those divs? Say I want to start at Dom node 5000, currently it seems like the scrollToPosition doesn't work if the virtual node is not already rendered in the Dom...?

mesqueeb avatar Jul 18 '21 07:07 mesqueeb

this.$refs.listRef.scrollToItem(20)

fhao07 avatar Oct 11 '21 02:10 fhao07