Fullscreen bug fix (fixes #664)

This commit is contained in:
Sam Potts
2017-10-05 22:46:48 +11:00
parent a21ffe983c
commit 34172b9aee
9 changed files with 113 additions and 93 deletions
+6
View File
@@ -114,6 +114,7 @@
},
fullscreen: {
enabled: "plyr--fullscreen-enabled",
fallback: "plyr--fullscreen-fallback",
active: "plyr--fullscreen-active"
},
tabFocus: "tab-focus"
@@ -991,6 +992,11 @@
if (nativeSupport || (config.fullscreen.fallback && !_inFrame())) {
_log((nativeSupport ? "Native" : "Fallback") + " fullscreen enabled");
// Add styling hook
if (!nativeSupport) {
_toggleClass(plyr.container, config.classes.fullscreen.fallback, true);
}
// Add styling hook
_toggleClass(plyr.container, config.classes.fullscreen.enabled, true);
} else {