update gestureInit.js

This commit is contained in:
Harvey committed 2022-05-16 13:18:10 +08:00
1 parent 7410a5be98
commit a989de98e5
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ export default function gestureInit(art, events) {
let startTime = 0;
const onTouchStart = (event) => {
if (event.touches.length === 1) {
if (event.touches.length === 1 && !art.isLock) {
isDroging = true;
const { clientX, clientY } = event.touches[0];
startX = clientX;