Skip to content

Commit

Permalink
web: Don't try to enter fullscreen if already in fullscreen & vice versa
Browse files Browse the repository at this point in the history
Fixes #9615
  • Loading branch information
n0samu authored and relrelb committed Aug 26, 2023
1 parent b456296 commit 7838d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/packages/core/src/ruffle-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ export class RufflePlayer extends HTMLElement {
* @param isFull Whether to set to fullscreen or return to normal.
*/
setFullscreen(isFull: boolean): void {
if (this.fullscreenEnabled) {
if (this.fullscreenEnabled && isFull !== this.isFullscreen) {
if (isFull) {
this.enterFullscreen();
} else {
Expand Down

0 comments on commit 7838d45

Please sign in to comment.