From cd73716dbf9f9f99d84156317709fd9988cf47ef Mon Sep 17 00:00:00 2001 From: Moshe Maor Date: Sat, 15 Feb 2025 11:51:34 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Revert=20"Revert=20"fix(SUP-46391):=20Playe?= =?UTF-8?q?r=20Live=20Full=20Screen=20Bug=20when=20browser=20wind=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit adad585daaa6f742639e973f043e9e648bba0321. --- src/components/shell/shell.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/shell/shell.tsx b/src/components/shell/shell.tsx index 4cc6ae99d..6db6fd875 100644 --- a/src/components/shell/shell.tsx +++ b/src/components/shell/shell.tsx @@ -262,6 +262,9 @@ class Shell extends Component { if (playerContainer) { this.props.updatePlayerClientRect(playerContainer.getBoundingClientRect()); } + setTimeout(() => { + this.props.updatePlayerClientRect(playerContainer.getBoundingClientRect()); + }, ON_PLAYER_RECT_CHANGE_DEBOUNCE_DELAY); }; /** From a6f2e51b1dc7f19634b0b77a8fd9a8a9448f9d85 Mon Sep 17 00:00:00 2001 From: Moshe Maor Date: Sat, 15 Feb 2025 11:52:44 +0200 Subject: [PATCH 2/2] Update shell.tsx --- src/components/shell/shell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/shell/shell.tsx b/src/components/shell/shell.tsx index 6db6fd875..fe7b25bd2 100644 --- a/src/components/shell/shell.tsx +++ b/src/components/shell/shell.tsx @@ -263,7 +263,7 @@ class Shell extends Component { this.props.updatePlayerClientRect(playerContainer.getBoundingClientRect()); } setTimeout(() => { - this.props.updatePlayerClientRect(playerContainer.getBoundingClientRect()); + this.props.updatePlayerClientRect(playerContainer?.getBoundingClientRect()); }, ON_PLAYER_RECT_CHANGE_DEBOUNCE_DELAY); };