Skip to content

Commit 954e507

Browse files
committed
Merge branch 'MAGETWO-45130' of github.corp.magento.com:magento-vanilla/magento2ce into PR
2 parents 6b8c5f6 + 5ff9bf7 commit 954e507

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/web/magnifier/magnifier.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,11 @@
571571
}
572572

573573
function toggleZoomButtons($image) {
574-
var path = $image.attr("src"),
574+
var path = $image.attr('src'),
575+
isVideo = $image.parent().hasClass('fotorama-video-container'),
575576
imgSize;
576-
if (path) {
577+
578+
if (path && !isVideo) {
577579
imgSize = getImageSize(path);
578580
if ((imgSize.rh > $image.parent().height()) || (imgSize.rw > $image.parent().width())) {
579581
$('.fotorama__zoom-in').show();

0 commit comments

Comments
 (0)