[PlayerPanel] channel change Itemfocus

This commit is contained in:
고동영
2024-07-30 10:17:55 +09:00
parent 9c2f3b1e07
commit f72b9401dc
2 changed files with 11 additions and 5 deletions

View File

@@ -998,11 +998,7 @@ const PlayerPanel = ({
Spotlight.focus("tab-0");
return;
}
// 비디오 진입시 포커스
if (panelInfo.isUpdatedByClick === undefined && shopNowInfo?.length > 0) {
Spotlight.focus("playVideoShopNowBox");
return;
}
// 미디어 포커스
if (panelInfo.shptmBanrTpNm === "MEDIA" && !panelInfo.modal) {
Spotlight.focus("videoPlayer");
@@ -1012,10 +1008,17 @@ const PlayerPanel = ({
if (!panelInfo.modal && !videoVerticalVisible) {
Spotlight.focus("player-tab-arrow");
}
//비디오 진입시 포커스
if (panelInfo.isIndicatorByClick && shopNowInfo?.length > 0) {
Spotlight.focus("playVideoShopNowBox");
return;
}
}, [
panelInfo.targetId,
panelInfo.modal,
panelInfo.isUpdatedByClick,
panelInfo.isIndicatorByClick,
panelInfo.shptmBanrTpNm,
shopNowInfo,
sideContentsVisible,
@@ -1488,6 +1491,7 @@ const PlayerPanel = ({
showId: playListInfo[newIndex].showId,
// lgCatCd: playListInfo[newIndex].catCd,
shptmBanrTpNm: panelInfo?.shptmBanrTpNm,
isIndicatorByClick: true,
},
})
);
@@ -1522,6 +1526,7 @@ const PlayerPanel = ({
showId: playListInfo[newIndex].showId,
//lgCatCd: playListInfo[newIndex].catCd,
shptmBanrTpNm: panelInfo?.shptmBanrTpNm,
isIndicatorByClick: true,
},
})
);

View File

@@ -28,6 +28,7 @@ export default function PlayerTabButton({
name: panel_names.PLAYER_PANEL,
panelInfo: {
isUpdatedByClick: false,
isIndicatorByClick: false,
},
})
);