-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
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
VirtualList 滑动抖动 #8936
Comments
#8560 应该是修复这个issue后出现的。 // createListComponent.js line:543 else 语句块
if (scrollUpdateWasRequested) {
if (isHorizontal) {
outerElementProps.scrollLeft = scrollOffset
} else {
outerElementProps.scrollTop = scrollOffset
}
} else {
if (isHorizontal) {
outerElementProps.scrollLeft = lockedScrollOffset
} else {
outerElementProps.scrollTop = lockedScrollOffset
}
}
|
我这边也出现了 ? 还没有fix 吗 我这边是微信小程序 发现在windows 电脑微信上 滑动不了 哈哈 |
我们同样也遇见了这样的问题 |
@Chen-jj 这个问题看一下? |
是的,注释掉 |
微信小程序上也同样的问题 |
微信小程序,VirtualList 抖的根本没法用。🤭 |
我使用的是Vue版本的virtual-list,@tarojs/taro的版本是3.2.1,貌似react新增的lockedScrollOffset,还没更新到vue版本中,我试着更新到vue中,scrollTo、scrollToItem可以正确使用了,但是滑动会上下一直抖动,试着去除了新增的lockedScrollOffset,使用scrollIntoView属性代替,暂时解决了抖动问题。但是只能使用scrollToItem。 //scrollIntoViewIdName作为外部props传入
//scrollIntoViewIndex作为scrollToItem方法参数传入
//scrollIntoViewIndex为Row.vue绑定的id,<view class="main-item" :id="'main-item-' + index" :style="css"></view>
if (this.scrollUpdateWasRequested) {
if (isHorizontal) {
outerElementProps.attrs.scrollIntoView = this.scrollIntoViewIdName + '-' + this.scrollIntoViewIndex;
} else {
outerElementProps.attrs.scrollIntoView = this.scrollIntoViewIdName + '-' + this.scrollIntoViewIndex;
}
} |
微信小程序,VirtualList 抖动问题仍然存在 @Chen-jj |
给个 Demo 看看咯 |
也不是抖动,是滚到第30条,会倒回到第20条这样 |
就官网的例子,假如我想从第一条开始滚动,会看到Row 30几,最后停留到20几 |
vue版本微信小程序闪的不行 |
VirtualList 在加载喊图片的列表时 编译在百度小程序 出现闪屏,taro版本3.4 示例demo: const Row = React.memo(({ id, index, style, data }) => { export default class Test extends Component { render() {
} |
不是哥们你别把数据也发出来啊 |
同样的问题 |
相关平台
支付宝小程序
小程序基础库: 1.24.3
使用框架: React
复现步骤
期望结果
列表可以顺畅滑动
实际结果
滑动过程中有抖动,用户体验非常不好
环境信息
补充信息
这个现象在模拟器中不明显,在真机模拟中体验非常差。
在 3.0.28 之前的版本中没有遇到 VirtualList 滑动抖动的问题,当升级版本到 3.0.28 后发现滑动抖动。用 3.1.4版本 新创建的工程中测试也是这样。
The text was updated successfully, but these errors were encountered: