Skip to content

Commit 9cbfdf8

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/web/magnifier/magnify.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ define([
274274
function toggleStandartNavigation() {
275275
var $selectable =
276276
$('a[href], area[href], input, select, textarea, button, iframe, object, embed, *[tabindex], *[contenteditable]')
277-
.not('[tabindex=-1], [disabled], :hidden'),
277+
.not('[tabindex=-1], [disabled], :hidden'),
278278
fotorama = $(gallerySelector).data('fotorama'),
279279
$focus = $(':focus'),
280280
index;
@@ -613,6 +613,9 @@ define([
613613
* @param e - event object
614614
*/
615615
function dblClickHandler(e) {
616+
if ($image.length === 0) {
617+
$image = $(fullscreenImageSelector, $gallery);
618+
}
616619
var imgOriginalSize = getImageSize($image[0]),
617620
proportions;
618621

@@ -821,6 +824,10 @@ define([
821824

822825
isDragActive = false;
823826
$image.removeClass(imageDraggableClass);
827+
828+
if (isTouchEnabled) {
829+
detectDoubleTap(e);
830+
}
824831
}
825832
});
826833

0 commit comments

Comments
 (0)