We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9747c commit 602094dCopy full SHA for 602094d
lib/web/magnifier/magnifier.js
@@ -819,7 +819,7 @@
819
if (($imageContainer.offset().left + $imageContainer.width()) > (left + $image.width() + widthStep/2)) {
820
left = $imageContainer.offset().left + $imageContainer.width() - $image.width() + widthStep/2;
821
} else {
822
- left = ($imageContainer.offset().left <= left + widthStep/2 && widthStep > 0) ? 0 : left + widthStep/2;
+ left = ($imageContainer.offset().left <= left + widthStep/2 && widthStep > 0) ? 0 : left - $imageContainer.offset().left + widthStep/2;
823
}
824
$image.css({
825
left: left,
0 commit comments