收藏
回答

真机调试无法显示拖动和缩放效果?

微信开发者工具版本: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>


回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签