We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue3-virtual-scroll-list/src/virtual-list.tsx
Lines 256 to 271 in 1a60766
这里3ms不够,可能在渲染新数据完成前获取高度。
参考 https://developer.mozilla.org/zh-CN/docs/Web/API/Window/requestAnimationFrame
一般情况每秒60次回调,就是17ms回调一次,设置成大于17ms的值才行。 页面比较卡的时候还是会有问题,以下写法更稳妥点:
const scrollToBottom = () => { if (shepherd.value) { requestAnimationFrame(() => { requestAnimationFrame(() => { scrollToOffset(shepherd.value[isHorizontal ? 'offsetLeft' : 'offsetTop']) }) }) } }
#13 的问题也一并解决了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vue3-virtual-scroll-list/src/virtual-list.tsx
Lines 256 to 271 in 1a60766
这里3ms不够,可能在渲染新数据完成前获取高度。
参考 https://developer.mozilla.org/zh-CN/docs/Web/API/Window/requestAnimationFrame
一般情况每秒60次回调,就是17ms回调一次,设置成大于17ms的值才行。
页面比较卡的时候还是会有问题,以下写法更稳妥点:
#13 的问题也一并解决了
The text was updated successfully, but these errors were encountered: