Skip to content

Commit 602094d

Browse files
committed
MAGETWO-43599: Prepare Pull Request for Gallery Widget on Configurable Product
- Fix vertical thumbs option
1 parent 0e9747c commit 602094d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/magnifier/magnifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@
819819
if (($imageContainer.offset().left + $imageContainer.width()) > (left + $image.width() + widthStep/2)) {
820820
left = $imageContainer.offset().left + $imageContainer.width() - $image.width() + widthStep/2;
821821
} else {
822-
left = ($imageContainer.offset().left <= left + widthStep/2 && widthStep > 0) ? 0 : left + widthStep/2;
822+
left = ($imageContainer.offset().left <= left + widthStep/2 && widthStep > 0) ? 0 : left - $imageContainer.offset().left + widthStep/2;
823823
}
824824
$image.css({
825825
left: left,

0 commit comments

Comments
 (0)