Skip to content

Commit d949a83

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

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

lib/web/magnifier/magnify.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -647,17 +647,15 @@ define([
647647
}
648648
}
649649

650-
if (isTouchEnabled) {
651-
$image.off('tap');
652-
$image.on('tap', function (e) {
653-
if (e.originalEvent.originalEvent.touches.length === 0) {
654-
detectDoubleTap(e);
655-
}
656-
});
657-
} else {
658-
$image.off('dblclick');
659-
$image.on('dblclick', dblClickHandler);
660-
}
650+
$image.off('tap');
651+
$image.on('tap', function (e) {
652+
if (e.originalEvent.originalEvent.touches.length === 0) {
653+
detectDoubleTap(e);
654+
}
655+
});
656+
657+
$image.off('dblclick');
658+
$image.on('dblclick', detectDoubleTap);
661659

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

0 commit comments

Comments
 (0)