From 7838d4549bad3c2edeb5d980cc574bda3fd8ef40 Mon Sep 17 00:00:00 2001 From: nosamu <71368227+n0samu@users.noreply.github.com> Date: Fri, 25 Aug 2023 23:28:13 -0500 Subject: [PATCH] web: Don't try to enter fullscreen if already in fullscreen & vice versa Fixes #9615 --- web/packages/core/src/ruffle-player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/packages/core/src/ruffle-player.ts b/web/packages/core/src/ruffle-player.ts index 43a67f8daade..f32950a7ca7d 100644 --- a/web/packages/core/src/ruffle-player.ts +++ b/web/packages/core/src/ruffle-player.ts @@ -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 {