- ScrollViewContext.scrollTo接口duration参数无效的bug
启用 scroll-view 增强特性,使用scrollViewContext.scrollTo接口控制scroll-view滑动到指定位置。滑动效果正常,但是duration参数无效。 wx.createSelectorQuery() .select('#scroll-test') .node() .exec((res) => { const scrollView = res[0].node; // scrollView.scrollEnabled = false; scrollView.scrollTo({ animated: true, duration: 1000, top: 500 }) })
2022-01-12 - query.select().boundingClientRect()返回的height不正确
使用如下代码得到的height有概率(大概10%的概率)返回错误的结果。感觉像是进入bingload回调函数的时候widthfix还没有完成。2.21.2及之前版本没遇到类似问题 query.select('#'+id).boundingClientRect(rect => { console.log(rect) console.log(rect.height) }).exec() [图片] 预期得到的结果如下: [图片] 有概率得到如下错误的结果: [图片]
2022-01-11