微信开发者工具版本:Stable v1.02.1907300
手机: HUAWEI-CLT-AL00
问题:电脑上可以显示拖动和缩放效果,但真机调试无法显示。
代码片段:
<view class=“scene”>
<view class=“scene-editor” id=“scene-editor”>
<canvas
style=“width: {{canvasWidth}}px; height: {{canvasHeight}}px;”
class=“scene-editor-main”
canvas-id=“scene”
catchtouchstart=“onTouchStart”
catchtouchmove=“onTouchMove”
catchtouchend=“onTouchEnd”
/>
</view>
<swiper
circular="{{true}}"
display-multiple-items="{{5}}"
class=“scene-template”
previous-margin=“10rpx”
next-margin=“10rpx”
>
<swiper-item wx:key=“cover” wx:for="{{templates}}">
<view class=“scene-item {{currentNewScene === index ? ‘scene-item–active’ : ‘’}}” bindtap=“onTapScene” data-index="{{index}}">
<image class=“scene-item-cover” mode=“aspectFit” src="{{item.cover}}" />
</view>
</swiper-item>
</swiper>
<button class=“scene-download” type=“primary” bindtap=“downloadPic”>保存照片</button>
</view>
你好,麻烦具体描述问题表现,提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)