https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/changelog.html
<view class="bingo-packer">
<pan-gesture-handler worklet:ongesture="onGesture">
<view class="bingo-packer__canvas_wrap">
<canvas type="2d" id="{{cid}}" class="bingo-packer__canvas" disable-scroll="{{true}}" style="z-index: 0;" />
</view>
</pan-gesture-handler>
</view>
onGesture(e) {
"worlet"
console.log(e);
}
是不是写错啦
worlet => worklet
我试了下是可以触发的
onGesture(e) {
"worklet"
console.log(e);
}