@@ -2487,11 +2487,11 @@ fotoramaVersion = '4.6.4';
2487
2487
. append ( $videoPlay . clone ( ) ) ;
2488
2488
2489
2489
// This solves tabbing problems
2490
- addFocus ( frame , function ( ) {
2490
+ addFocus ( frame , function ( e ) {
2491
2491
setTimeout ( function ( ) {
2492
2492
lockScroll ( $stage ) ;
2493
2493
} , 0 ) ;
2494
- clickToShow ( { index : frameData . eq , user : true } ) ;
2494
+ clickToShow ( { index : frameData . eq , user : true } , e ) ;
2495
2495
} ) ;
2496
2496
2497
2497
$stageFrame = $stageFrame . add ( $frame ) ;
@@ -3040,7 +3040,10 @@ fotoramaVersion = '4.6.4';
3040
3040
return time ;
3041
3041
}
3042
3042
3043
- that . showStage = function ( silent , options , time ) {
3043
+ that . showStage = function ( silent , options , time , e ) {
3044
+ if ( e !== undefined && e . target . tagName == 'IFRAME' ) {
3045
+ return ;
3046
+ }
3044
3047
unloadVideo ( $videoPlaying , activeFrame . i !== data [ normalizeIndex ( repositionIndex ) ] . i ) ;
3045
3048
frameDraw ( activeIndexes , 'stage' ) ;
3046
3049
stageFramePosition ( SLOW ? [ dirtyIndex ] : [ dirtyIndex , getPrevIndex ( dirtyIndex ) , getNextIndex ( dirtyIndex ) ] ) ;
@@ -3128,7 +3131,7 @@ fotoramaVersion = '4.6.4';
3128
3131
}
3129
3132
} ;
3130
3133
3131
- that . show = function ( options ) {
3134
+ that . show = function ( options , e ) {
3132
3135
that . longPress . singlePressInProgress = true ;
3133
3136
3134
3137
var index = calcActiveIndex ( options ) ;
@@ -3139,7 +3142,7 @@ fotoramaVersion = '4.6.4';
3139
3142
3140
3143
var silent = _activeFrame === activeFrame && ! options . user ;
3141
3144
3142
- that . showStage ( silent , options , time ) ;
3145
+ that . showStage ( silent , options , time , e ) ;
3143
3146
that . showNav ( silent , options , time ) ;
3144
3147
3145
3148
showedFLAG = typeof lastActiveIndex !== 'undefined' && lastActiveIndex !== activeIndex ;
@@ -3499,7 +3502,7 @@ fotoramaVersion = '4.6.4';
3499
3502
3500
3503
$stage . on ( 'mousemove' , stageCursor ) ;
3501
3504
3502
- function clickToShow ( showOptions ) {
3505
+ function clickToShow ( showOptions , e ) {
3503
3506
clearTimeout ( clickToShow . t ) ;
3504
3507
3505
3508
if ( opts . clicktransition && opts . clicktransition !== opts . transition ) {
@@ -3516,7 +3519,7 @@ fotoramaVersion = '4.6.4';
3516
3519
} , 10 ) ;
3517
3520
} , 0 ) ;
3518
3521
} else {
3519
- that . show ( showOptions ) ;
3522
+ that . show ( showOptions , e ) ;
3520
3523
}
3521
3524
}
3522
3525
0 commit comments