File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
app/code/Magento/ProductVideo/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -511,6 +511,7 @@ define([
511
511
$ ( '.fotorama__arr--next' ) . hide ( ) ;
512
512
$ ( '.fotorama__arr--prev' ) . hide ( ) ;
513
513
514
+ $ ( this ) . find ( 'img' ) . hide ( ) ;
514
515
$ ( this ) . removeClass ( 'video-unplayed' ) ;
515
516
$ ( this ) . find ( '.' + PV ) . productVideoLoader ( ) ;
516
517
@@ -592,12 +593,17 @@ define([
592
593
cloneVideoDiv ,
593
594
iframeElement = $ ( this ) . find ( 'iframe' ) ,
594
595
currentIndex ,
595
- itemIndex ;
596
+ itemIndex ,
597
+ videoPreview = $item . find ( 'img' ) ;
596
598
597
599
if ( iframeElement . length === 0 ) {
598
600
return ;
599
601
}
600
602
603
+ if ( ! videoPreview . is ( ':visible' ) ) {
604
+ videoPreview . show ( ) ;
605
+ }
606
+
601
607
currentIndex = current . activeFrame . $stageFrame . index ( ) ;
602
608
itemIndex = $item . index ( ) ;
603
609
@@ -619,6 +625,7 @@ define([
619
625
self . _hideCloseVideo ( ) ;
620
626
621
627
} ) ;
628
+
622
629
$ ( '.' + this . FTAR ) . removeClass ( 'hidden-video' ) ;
623
630
}
624
631
} ) ;
You can’t perform that action at this time.
0 commit comments