|
@@ -190,12 +190,16 @@ export default () => {
|
|
|
const touchInfo = ref<{ x: number; y: number } | null>(null)
|
|
|
|
|
|
const touchStartListener = (e: TouchEvent) => {
|
|
|
+ // 控制能不能翻页
|
|
|
+ if (!isPPTWheelPage.value) return
|
|
|
touchInfo.value = {
|
|
|
x: e.changedTouches[0].pageX,
|
|
|
y: e.changedTouches[0].pageY
|
|
|
}
|
|
|
}
|
|
|
const touchEndListener = (e: TouchEvent) => {
|
|
|
+ // 控制能不能翻页
|
|
|
+ if (!isPPTWheelPage.value) return
|
|
|
if (!touchInfo.value) return
|
|
|
|
|
|
const offsetX = Math.abs(touchInfo.value.x - e.changedTouches[0].pageX)
|