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