Skip to content

Commit 1e91aca

Browse files
committed
ACP2E-3198: [cloud] Two-finger zoom and move issue on the real mobile device
1 parent 38c6f69 commit 1e91aca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/web/magnifier/magnify.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ define([
689689

690690
function detectDoubleTap() {
691691
let lastTap = 0;
692-
let timeout;
692+
let tapTimeout, zoomTimeout;
693693

694694
return function doubleTap(event) {
695695
const curTime = new Date().getTime();
@@ -701,14 +701,14 @@ define([
701701

702702
preventAction = true;
703703
dblClickHandler(event);
704-
timeout = setTimeout(() => {
705-
clearTimeout(timeout);
704+
zoomTimeout = setTimeout(() => {
706705
preventAction = false;
706+
clearTimeout(zoomTimeout);
707707
}, 500);
708708
prevDiff = -1;
709709
} else {
710-
timeout = setTimeout(() => {
711-
clearTimeout(timeout);
710+
tapTimeout = setTimeout(() => {
711+
clearTimeout(tapTimeout);
712712
}, 500);
713713
}
714714

0 commit comments

Comments
 (0)