<view @touchstart="moveStart" @touchend="moveEnd">
<mescroll-body ref="mescrollRef" @init="mescrollInit" @up="upCallback" :up="upOption">
<view class="tui-contanier">
</view>
</mescroll-body>
</view>
<script>
moveStart(e){
this.startData.clientX = e.changedTouches[0].clientX; //手指按下时的X坐标
this.startData.clientY = e.changedTouches[0].clientY; //手指按下时的X坐标
},
moveEnd(e){
let clientX = e.changedTouches[0].clientX;
let reduce = this.startData.clientX - clientX;
let clientY = e.changedTouches[0].clientY;
let reduce2 = Math.abs(this.startData.clientY - clientY);
},
</script>
0 个回复