Skip to content

Commit 6b8c5f6

Browse files
committed
Merge branch 'MAGETWO-45064' of github.corp.magento.com:magento-vanilla/magento2ce into PR
2 parents 09a5352 + 868e4b9 commit 6b8c5f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/ProductVideo/view/frontend/web/js/fotorama-add-video-events.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ define([
142142
}, this));
143143
$(this.element).on('fotorama:fullscreenexit', $.proxy(function () {
144144
this.inFullscreen = false;
145+
$(this.element).find('.' + this.PV).parent().find('img:not(".fotorama__img--full")').show();
145146
}, this));
146147
},
147148

@@ -518,9 +519,9 @@ define([
518519
$('.fotorama__arr--next').hide();
519520
$('.fotorama__arr--prev').hide();
520521

521-
$(this).find('img').hide();
522522
$(this).removeClass('video-unplayed');
523523
$(this).find('.' + PV).productVideoLoader();
524+
$(this).find('img').hide();
524525

525526
if (!self.isFullscreen) {
526527
self._showCloseVideo();
@@ -606,8 +607,7 @@ define([
606607
if (iframeElement.length === 0) {
607608
return;
608609
}
609-
610-
if (!videoPreview.is(':visible')) {
610+
if (!videoPreview.is(':visible') && !self.inFullscreen) {
611611
videoPreview.show();
612612
}
613613

0 commit comments

Comments
 (0)