在某些安卓手机canvas组件bindtouchmove事件不能触发
发布于 6 年前 作者 libai 15258 次浏览 来自 问答

在模拟器上面是好好的,用了iphone手机试了,也没问题,但是在某些安卓手机(比如 红米 Note 4x), touchmove事件就无法触发了,求解决

wxml:

<view class="captcha_bar">
<canvas canvas-id="ballCanvas" class="ball_bar" ></canvas>
<canvas canvas-id="captchaCanvas"
class="captcha_slider"
bindtouchmove="handleTouch"
bindtouchend="handleTouchEnd" >
</canvas>

</view>


js:

handleTouch() {

    console.log('hello!')

}


回到顶部