Skip to content

Commit

Permalink
fix: Fix fullscreen on rotate (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben authored May 25, 2021
1 parent 64f6773 commit 33093e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const onPlayerReady = (player, options) => {
const currentAngle = angle();

if ((currentAngle === 90 || currentAngle === 270 || currentAngle === -90) &&
options.enterOnRotate) {
options.fullscreen.enterOnRotate) {
if (player.paused() === false) {
player.requestFullscreen();
if (options.fullscreen.lockOnRotate &&
Expand All @@ -100,7 +100,7 @@ const onPlayerReady = (player, options) => {
}
}

if ((currentAngle === 0 || currentAngle === 180) && options.exitOnRotate) {
if ((currentAngle === 0 || currentAngle === 180) && options.fullscreen.exitOnRotate) {
if (player.isFullscreen()) {
player.exitFullscreen();
}
Expand Down

0 comments on commit 33093e4

Please sign in to comment.