From a58cfb4e81d36a819badd95d6c2b7eebd26dd4f8 Mon Sep 17 00:00:00 2001 From: optrader Date: Fri, 14 Nov 2025 16:32:22 +0900 Subject: [PATCH] =?UTF-8?q?[251114]=20fix:=20HomePanel,HomeBanner=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=20=EB=B9=84=EB=94=94=EC=98=A4=20=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=EB=B3=B4=EC=9E=A5-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 11. 14. 16:32:22 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 1개 β€’ μΆ”κ°€: +22쀄 β€’ μ‚­μ œ: -4쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx πŸ”§ ν•¨μˆ˜ λ³€κ²½ λ‚΄μš©: πŸ“„ com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx (javascript): πŸ”„ Modified: SpotlightContainerDecorator() --- .../src/views/HomePanel/HomeBanner/RandomUnit.jsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx index 63161c62..ad92911e 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx @@ -33,6 +33,7 @@ import { LOG_TP_NO, panel_names, } from '../../../utils/Config'; +import { selectIsPlaying } from '../../../utils/playerState/playerStateSelectors'; import { $L, formatGMTString } from '../../../utils/helperMethods'; import { TEMPLATE_CODE_CONF } from '../HomePanel'; import css from './RandomUnit.module.less'; @@ -69,6 +70,11 @@ export default function RandomUnit({ return playerPanel?.panelInfo?.playerState?.currentBannerId; }); + const isVideoPlaying = useSelector(selectIsPlaying); + const isCurrentBannerVideoPlaying = Boolean( + currentVideoBannerId && isVideoPlaying && currentVideoBannerId === spotlightId + ); + // μ •μƒμ μœΌλ‘œ λ‘œλ”©λ˜λ©΄ 빈객체둜 λ„˜μ–΄κ°€κ³  , μ—λŸ¬κ°€ λ‚˜λ©΄ κ°μ²΄μ•ˆμ— νƒ€μž…μ΄ λ‹΄κ²¨μ˜΅λ‹ˆλ‹€. const broadcast = useSelector((state) => state.common.broadcast); const { curationId, curationTitle } = useSelector((state) => state.home); @@ -230,7 +236,7 @@ export default function RandomUnit({ } // videoκ°€ ν”Œλ ˆμ΄ λΆˆκ°€λŠ₯ν•œ 경우: μž¬μƒ 쀑인 λΉ„λ””μ˜€λ₯Ό 1px둜 μΆ•μ†Œ - if (!videoPlayerable && currentVideoBannerId) { + if (!videoPlayerable && currentVideoBannerId && isCurrentBannerVideoPlaying) { console.log('[RandomUnit] videoPlayerable=false, shrinking video to 1px', { videoPlayerable, currentVideoBannerId, @@ -397,7 +403,7 @@ export default function RandomUnit({ let action = linkType === 'DSP00507' ? startVideoPlayer : pushPanel; const isNavigatingToDetail = linkInfo.name === panel_names.DETAIL_PANEL; - if (isNavigatingToDetail && playerPanelInfo?.modal !== false) { + if (isNavigatingToDetail && playerPanelInfo?.modal !== false && isCurrentBannerVideoPlaying) { dispatch(finishVideoPreview()); } @@ -422,11 +428,12 @@ export default function RandomUnit({ topContentsLogInfo, playerPanelInfo?.modal, sendBannerLog, + isCurrentBannerVideoPlaying, ]); // νˆ¬λ°μ΄μ¦ˆλ”œ 클릭 const todayDealClick = useCallback(() => { - if (playerPanelInfo?.modal !== false) { + if (playerPanelInfo?.modal !== false && isCurrentBannerVideoPlaying) { dispatch(finishVideoPreview()); } @@ -456,6 +463,7 @@ export default function RandomUnit({ topContentsLogInfo, sendBannerLog, playerPanelInfo?.modal, + isCurrentBannerVideoPlaying, ]); // λΉ„λ””μ˜€ 클릭