Aspect ratio tweaks

This commit is contained in:
Sam Potts
2019-06-03 20:13:16 +10:00
parent 0f14865d56
commit 97d9228bed
5 changed files with 17 additions and 19 deletions

View File

@ -336,8 +336,13 @@ class Listeners {
on.call(player, elements.container, 'enterfullscreen exitfullscreen', event => {
const { target, usingNative } = player.fullscreen;
// Ignore for iOS native
if (!player.isEmbed || target !== elements.container) {
// Ignore events not from target
if (target !== elements.container) {
return;
}
// If it's not an embed and no ratio specified
if (!player.isEmbed && is.empty(player.config.ratio)) {
return;
}