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

设置start参数或者调用scrollToIndex 时 scroll的偏移量错误问题

Open echoyl opened this issue 3 years ago • 3 comments

场景 1.数据量15条,每条数据等高 2.设置keeps 为10条 现在设置start <= 3 时 scroll正常 (加载数据从第一条开始) 设置start = 4 或 5 时 scroll的偏移量就出现偏差了 (加载从第4或第5条开始) 设置start > 5 正常 (使用scrollToIndex 时和start情况一样)

作者能试下看是我哪里用的不对么

echoyl avatar Oct 11 '21 06:10 echoyl

遇到了相似的问题,版本2.3.2

nani123123 avatar Dec 01 '21 01:12 nani123123

有解决吗?遇到了一样的问题,版本:2.3.5 每个item的高度不定,使用scrollToIndex 时 scroll的偏移量有问题

gjieoo avatar Jun 05 '23 03:06 gjieoo

有解决吗?遇到了一样的问题,版本:2.3.5 每个item的高度不定,使用scrollToIndex 时 scroll的偏移量有问题

试试先调用reset再调用scrollToIndex 我这边这样暂时没发现问题

firimar avatar Jun 14 '23 03:06 firimar