From 15aecd0792380dc0a0c723a885930bc3572615ae Mon Sep 17 00:00:00 2001 From: optrader Date: Tue, 18 Nov 2025 13:52:01 +0900 Subject: [PATCH] =?UTF-8?q?[251118]=20fix:=20PlayerPanel=20=EC=98=A4?= =?UTF-8?q?=EB=B2=84=EB=A0=88=EC=9D=B4=20=EC=88=A8=EA=B9=80=20=EB=8F=99?= =?UTF-8?q?=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ• ์ปค๋ฐ‹ ์‹œ๊ฐ„: 2025. 11. 18. 13:52:01 ๐Ÿ“Š ๋ณ€๊ฒฝ ํ†ต๊ณ„: โ€ข ์ด ํŒŒ์ผ: 2๊ฐœ โ€ข ์ถ”๊ฐ€: +14์ค„ โ€ข ์‚ญ์ œ: -5์ค„ ๐Ÿ“ ์ˆ˜์ •๋œ ํŒŒ์ผ: ~ com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx ๐Ÿ”ง ์ฃผ์š” ๋ณ€๊ฒฝ ๋‚ด์šฉ: โ€ข UI ์ปดํฌ๋„ŒํŠธ ์•„ํ‚คํ…์ฒ˜ ๊ฐœ์„  --- .../src/components/VideoPlayer/VideoPlayer.js | 12 ++++++++++++ .../src/views/PlayerPanel/PlayerPanel.jsx | 7 ++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js b/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js index d0a0cc02..30b376f1 100644 --- a/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js +++ b/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js @@ -886,6 +886,18 @@ const VideoPlayerBase = class extends React.Component { } } + // TabContainerV2(ํ•˜๋‹จ ํƒญ)์™€ ์ƒ๋‹จ ์˜ค๋ฒ„๋ ˆ์ด(๋’ค๋กœ๊ฐ€๊ธฐ ์•„์ด์ฝ˜ ๋“ฑ) ๋™๊ธฐํ™” + // mediaControlsVisible์ด ๋‹ค๋ฅธ ๊ฒฝ๋กœ๋กœ ํ† ๊ธ€๋  ๋•Œ belowContentsVisible๋„ ๋งž์ถฐ ์ค˜์„œ + // ๋‘ ์˜ค๋ฒ„๋ ˆ์ด๊ฐ€ ๋”ฐ๋กœ ๋†€์ง€ ์•Š๋„๋ก ํ•œ๋‹ค. + if ( + this.props.tabContainerVersion === 2 && + typeof this.props.setBelowContentsVisible === 'function' && + this.state.mediaControlsVisible !== prevState.mediaControlsVisible && + this.props.belowContentsVisible !== this.state.mediaControlsVisible + ) { + this.props.setBelowContentsVisible(this.state.mediaControlsVisible); + } + if ( (!this.state.mediaControlsVisible && prevState.mediaControlsVisible !== this.state.mediaControlsVisible) || diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx index 261c446e..13262ce6 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx @@ -2072,11 +2072,8 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props return; } - // NOTE ์ฒซ ์ง„์ž… ์‹œ์—๋Š” 30์ดˆ ํ›„ ํƒญ์ด ๋‹ซํžˆ๋„๋ก ์„ค์ • - if (initialEnterV2) { - // console.log('[TabContainerV2] ์ฒซ ์ง„์ž… - ํƒ€์ด๋จธ ์‹œ์ž‘', INITIAL_TIMEOUT); - resetTimerV2(INITIAL_TIMEOUT); - } + // NOTE ํƒญ์ด ํ‘œ์‹œ๋  ๋•Œ๋งˆ๋‹ค ํƒ€์ด๋จธ ์‹œ์ž‘ (์ฒซ ์ง„์ž…์€ 30์ดˆ, ์ดํ›„์—๋Š” REGULAR_TIMEOUT) + resetTimerV2(initialEnterV2 ? INITIAL_TIMEOUT : REGULAR_TIMEOUT); const handleEvent = (e) => { // console.log('[TabContainerV2] ์ด๋ฒคํŠธ ๋ฐœ์ƒ:', e.type);