This commit is contained in:
X1627315083
2024-02-22 10:03:51 +08:00
parent 729da18df8
commit 030aa55d38
10 changed files with 730 additions and 63 deletions

View File

@@ -60,7 +60,7 @@ export default defineComponent({
bigImg.style.backgroundPosition = `${bgPosX}px ${bgPosY}px`;
bigImg.style.backgroundSize = `${bgPosW}px ${bgPosH}px`;
}
document.addEventListener('touchmove',touchmove)
document.addEventListener('touchmove',touchmove,{passive:true})
el.addEventListener('touchend',()=>{
document.removeEventListener('touchmove',touchmove)
document.removeEventListener('touchstart',touchstart)