File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3426,7 +3426,7 @@ InteractiveVideo.prototype.findNextInteractionToHide = function (time) {
3426
3426
let candidate ;
3427
3427
for ( var i = 0 ; i < this . visibleInteractions . length ; i ++ ) {
3428
3428
const duration = this . interactions [ this . visibleInteractions [ i ] ] . getDuration ( ) ;
3429
- if ( ! candidate || duration . to < this . interactions [ this . visibleInteractions [ candidate ] ] . getDuration ( ) . to ) {
3429
+ if ( candidate === undefined || duration . to < this . interactions [ this . visibleInteractions [ candidate ] ] . getDuration ( ) . to ) {
3430
3430
candidate = i ;
3431
3431
}
3432
3432
}
@@ -3484,7 +3484,7 @@ InteractiveVideo.prototype.showInteractions = function (time) {
3484
3484
3485
3485
// Are there more interactions for us to show?
3486
3486
this . nextInteractionToShow = this . findNextInteractionToShow ( time , this . nextInteractionToShow ) ;
3487
- interaction = this . nextInteractionToShow !== undefined ? this . interactions [ this . nextInteractionToHide ] : null ;
3487
+ interaction = this . nextInteractionToShow !== undefined ? this . interactions [ this . nextInteractionToShow ] : null ;
3488
3488
}
3489
3489
3490
3490
this . accessibility . announceInteractions ( newInteractions ) ;
You can’t perform that action at this time.
0 commit comments