File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1903,6 +1903,14 @@ fotoramaVersion = '4.6.4';
1903
1903
} ) ;
1904
1904
}
1905
1905
1906
+ /**
1907
+ * Checks if current media object is YouTube or Vimeo video stream
1908
+ * @returns {boolean }
1909
+ */
1910
+ function isVideo ( ) {
1911
+ return $ ( ( that . activeFrame || { } ) . $stageFrame || { } ) . hasClass ( 'fotorama-video-container' ) ;
1912
+ }
1913
+
1906
1914
function allowKey ( key ) {
1907
1915
return o_keyboard [ key ] ;
1908
1916
}
@@ -3149,8 +3157,7 @@ fotoramaVersion = '4.6.4';
3149
3157
if ( o_allowFullScreen && ! that . fullScreen ) {
3150
3158
3151
3159
//check that this is not video
3152
- var isVideo = $ ( ( that . activeFrame || { } ) . $stageFrame || { } ) . hasClass ( 'fotorama-video-container' ) ;
3153
- if ( isVideo ) {
3160
+ if ( isVideo ( ) ) {
3154
3161
return ;
3155
3162
}
3156
3163
@@ -3739,7 +3746,10 @@ fotoramaVersion = '4.6.4';
3739
3746
}
3740
3747
3741
3748
activeIndexes = [ ] ;
3742
- detachFrames ( STAGE_FRAME_KEY ) ;
3749
+
3750
+ if ( ! isVideo ( ) ) {
3751
+ detachFrames ( STAGE_FRAME_KEY ) ;
3752
+ }
3743
3753
3744
3754
reset . ok = true ;
3745
3755
You can’t perform that action at this time.
0 commit comments