Skip to content

Commit 8f7407b

Browse files
committed
ACP2E-3029: [Cloud] Mobile Issue Only not able to pinch on the PDP image
1 parent ef861d7 commit 8f7407b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/web/magnifier/magnify.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,16 +639,19 @@ define([
639639
let now = new Date().getTime(),
640640
timesince = now - tapFlag;
641641

642-
if (timesince > 10 && (isTouchEnabled && timesince < 400) || (!isTouchEnabled && timesince < 2000)) {
642+
if (timesince > 20 && (isTouchEnabled && timesince < 400) || (!isTouchEnabled && timesince < 2000)) {
643643
transitionActive = false;
644644
dblClickHandler(e);
645645
}
646646
tapFlag = now;
647647
}
648648

649-
$image.off('dblclick');
650-
$image.on('dblclick', detectDoubleTap);
651-
$image.on('touchend', detectDoubleTap);
649+
if (isTouchEnabled) {
650+
$image.on('touchend', detectDoubleTap);
651+
} else {
652+
$image.off('dblclick');
653+
$image.on('dblclick', dblClickHandler);
654+
}
652655

653656
if (gallery.fullScreen) {
654657
toggleZoomButtons($image, isTouchEnabled, checkForVideo(fotorama.activeFrame.$stageFrame));

0 commit comments

Comments
 (0)