Skip to content

Commit 9eb8dc0

Browse files
committed
MC-39279: [ CLARIFICATION ] Product zoom effect on iPhone is not similar to desktop or android zoom effect
1 parent 297728f commit 9eb8dc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/web/magnifier/magnify.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ define([
314314
ratio,
315315
dimentions = {};
316316

317-
if (allowZoomIn && (!transitionEnabled || !transitionActive) && (isTouchEnabled ||
317+
if (allowZoomIn && (!transitionEnabled && !transitionActive) && (isTouchEnabled ||
318318
!$(zoomInButtonSelector).hasClass(zoomInDisabled))) {
319319
$image = $(fullscreenImageSelector);
320320
imgOriginalSize = getImageSize($image[0]);
@@ -387,7 +387,7 @@ define([
387387
ratio,
388388
fitIntoParent;
389389

390-
if (allowZoomOut && (!transitionEnabled || !transitionActive) && (isTouchEnabled ||
390+
if (allowZoomOut && (!transitionEnabled && !transitionActive) && (isTouchEnabled ||
391391
!$(zoomOutButtonSelector).hasClass(zoomOutDisabled))) {
392392
allowZoomIn = true;
393393
$image = $(fullscreenImageSelector);
@@ -679,7 +679,7 @@ define([
679679
if ($image.hasClass(imageDraggableClass)) {
680680
$image.removeClass(imageDraggableClass);
681681
}
682-
} else if (gallery.fullScreen && (!transitionEnabled || !transitionActive)) {
682+
} else if (gallery.fullScreen && (!transitionEnabled && !transitionActive)) {
683683
imagePosY = getTop($image);
684684
imagePosX = $image.offset().left;
685685

@@ -719,7 +719,7 @@ define([
719719
var clientX,
720720
clientY;
721721

722-
if (gallery.fullScreen && isDragActive && (!transitionEnabled || !transitionActive)) {
722+
if (gallery.fullScreen && isDragActive && (!transitionEnabled && !transitionActive)) {
723723

724724
if (allowZoomOut && !$image.hasClass(imageDraggableClass)) {
725725
$image.addClass(imageDraggableClass);

0 commit comments

Comments
 (0)