步奏: 添加两个事件(手指按下时,手指松开时)
bindtouchstart="touchStart" //开始
bindtouchend="touchEnd"//结束
即:wxml
<view bindtouchstart="touchStart" bindtouchend="touchEnd" ></view>
wjs:
let touchDotX = 0;//X按下时坐标
let touchDotY =
bindtouchstart="touchStart" //开始
bindtouchend="touchEnd"//结束
即:wxml
<view bindtouchstart="touchStart" bindtouchend="touchEnd" ></view>
wjs:
let touchDotX = 0;//X按下时坐标
let touchDotY =