Skip to content

Commit bd2da5b

Browse files
committed
Merge remote-tracking branch 'magento-mpi/MC-22153' into MPI-PR-2019-10-31
2 parents 207a742 + 71751bd commit bd2da5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/web/fotorama/fotorama.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ fotoramaVersion = '4.6.4';
434434
return (this.prefix === '') ? el.requestFullScreen() : el[this.prefix + 'RequestFullScreen']();
435435
};
436436
fullScreenApi.cancel = function (el) {
437+
if (!this.is()) {
438+
return false;
439+
}
437440
return (this.prefix === '') ? document.cancelFullScreen() : document[this.prefix + 'CancelFullScreen']();
438441
};
439442
}

0 commit comments

Comments
 (0)