[251122] fix: PlayerPanel ReturnFromDetailPanel처리

🕐 커밋 시간: 2025. 11. 22. 19:42:57

📊 변경 통계:
  • 총 파일: 1개
  • 추가: +8줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx
This commit is contained in:
2025-11-22 19:42:57 +09:00
parent 209d983954
commit ce51902150

View File

@@ -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