[PlayerPanel] channel change Itemfocus
This commit is contained in:
@@ -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,
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
@@ -28,6 +28,7 @@ export default function PlayerTabButton({
|
||||
name: panel_names.PLAYER_PANEL,
|
||||
panelInfo: {
|
||||
isUpdatedByClick: false,
|
||||
isIndicatorByClick: false,
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user