提交 096bbfd7 编写于 作者: D DCloud_LXH

fix: scroll-view multi-touch

上级 4b9adefd
......@@ -495,13 +495,15 @@ function useScrollViewLoader(
let touchStart: {
x: number
y: number
} = {
} | null = {
x: 0,
y: 0,
}
let needStop: boolean | null = null
let __handleTouchMove = function (event: TouchEvent) {
if (touchStart === null) return
let x = event.touches[0].pageX
let y = event.touches[0].pageY
let _main = main.value!
......@@ -592,10 +594,7 @@ function useScrollViewLoader(
}
}
let __handleTouchEnd = function (event: TouchEvent) {
touchStart = {
x: 0,
y: 0,
}
touchStart = null
disableScrollBounce({
disable: false,
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册