[shoptime-3994] webOS 5.0 에서 Featured Brands / Live 상품 클릭시 포커싱 상이
- 6.0 에서 정상 동작 확인, 5.0 이하 저사양 플랫폼에서 타이밍 이슈로 보임 - JOB 사용하여 수정
This commit is contained in:
@@ -317,6 +317,7 @@ const PlayerPanel = ({
|
|||||||
const panelInfoRef = usePrevious(panelInfo);
|
const panelInfoRef = usePrevious(panelInfo);
|
||||||
|
|
||||||
const initialFocusTimeoutJob = useRef(new Job((func) => func(), 100));
|
const initialFocusTimeoutJob = useRef(new Job((func) => func(), 100));
|
||||||
|
const shopNowFocusTimeoutJob = useRef(new Job((func) => func(), 100));
|
||||||
const liveLogParamsRef = useRef(null);
|
const liveLogParamsRef = useRef(null);
|
||||||
const vodLogParamsRef = useRef(null);
|
const vodLogParamsRef = useRef(null);
|
||||||
const mediaLogParamsRef = useRef(null);
|
const mediaLogParamsRef = useRef(null);
|
||||||
@@ -1016,7 +1017,9 @@ const PlayerPanel = ({
|
|||||||
|
|
||||||
if (!panelInfo.modal && !videoVerticalVisible && !hasProperSpot) {
|
if (!panelInfo.modal && !videoVerticalVisible && !hasProperSpot) {
|
||||||
if (panelInfo.shptmBanrTpNm === "LIVE" && shopNowInfo?.length > 0) {
|
if (panelInfo.shptmBanrTpNm === "LIVE" && shopNowInfo?.length > 0) {
|
||||||
Spotlight.focus("playVideoShopNowBox");
|
shopNowFocusTimeoutJob.current.start(() => {
|
||||||
|
Spotlight.focus("playVideoShopNowBox");
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Spotlight.focus(SpotlightIds.PLAYER_TAB_BUTTON);
|
Spotlight.focus(SpotlightIds.PLAYER_TAB_BUTTON);
|
||||||
|
|||||||
Reference in New Issue
Block a user