提交 86986eac 编写于 作者: S suzigang

fix(list v3): 虚拟列表在ios手机上,滚动条滚动到顶部会出现白屏。 #2031

上级 881f38fb
......@@ -84,7 +84,7 @@ export default create({
});
const handleScrollEvent = async (e: any) => {
const scrollTop = e.detail ? e.detail.scrollTop : e.target.scrollTop;
const scrollTop = Math.max(e.detail ? e.detail.scrollTop : e.target.scrollTop, 0.1);
state.start = Math.floor(scrollTop / props.height);
if (end.value > state.list.length) {
emit('scroll');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册