From ce5190215047c5693928c29391173ec2f34e691a Mon Sep 17 00:00:00 2001 From: optrader Date: Sat, 22 Nov 2025 19:42:57 +0900 Subject: [PATCH] =?UTF-8?q?[251122]=20fix:=20PlayerPanel=20ReturnFromDetai?= =?UTF-8?q?lPanel=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ• ์ปค๋ฐ‹ ์‹œ๊ฐ„: 2025. 11. 22. 19:42:57 ๐Ÿ“Š ๋ณ€๊ฒฝ ํ†ต๊ณ„: โ€ข ์ด ํŒŒ์ผ: 1๊ฐœ โ€ข ์ถ”๊ฐ€: +8์ค„ ๐Ÿ“ ์ˆ˜์ •๋œ ํŒŒ์ผ: ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx --- .../src/views/PlayerPanel/PlayerPanel.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx index 6c7398a8..534cc4f7 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx @@ -2273,6 +2273,9 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props Spotlight.focus(lastFocusedTargetId); }, 500); } + + // ํ•œ ๋ฒˆ ์ฒ˜๋ฆฌํ•œ ๋ณต๊ท€ ํ”Œ๋ž˜๊ทธ๋Š” ์ฆ‰์‹œ ํ•ด์ œํ•ด ์ค‘๋ณต ์˜ํ–ฅ์„ ๋ง‰๋Š”๋‹ค. + prevIsTopPanelDetailFromPlayerRef.current = false; } } }, [ @@ -2287,6 +2290,11 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props // PopularShow์—์„œ ์ฒ˜์Œ ํ˜ธ์ถœํ•  ๋•Œ์ฒ˜๋Ÿผ modal์ด false์ธ ์ƒํƒœ์—์„œ VOD/LIVE ๊ตฌ๋ถ„ useEffect(() => { if (isOnTop && !panelInfo.modal && !videoVerticalVisible && tabContainerVersion === 2) { + // DetailPanel์—์„œ ๋ง‰ ๋ณต๊ท€ํ•œ ๊ฒฝ์šฐ ํƒญ ์ธ๋ฑ์Šค๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜์ง€ ์•Š๋Š”๋‹ค. + if (panelInfo?.detailPanelClosed) { + return; + } + console.log( '[PlayerPanel] ๐Ÿ“บ Modal false ์ƒํƒœ - shptmBanrTpNm:', panelInfoRef.current?.shptmBanrTpNm