Skyline模式下通过wx.worklet调用scroll-view的scrollTo问题?
Skyline模式下通过wx.worklet调用scroll-view的scrollTo,页面直接崩溃了,也catch不到啥错误,有人知道咋回事吗? scrollTo() {
const ref = this.scrollRef.value;
wx.worklet.runOnUI(() => {
'worklet';
wx.worklet.scrollViewContext.scrollTo(ref, {
top: 200,
duration: 2000,
animated: true,
easingFunction: 'ease'
});
})()
},