[SHOPTIME-3412] Full Player / Live / Live Channel / 다른 방송을 연속으로 계속 클릭 할 경우 잠시 멈춤 현상
[수정파일] src/views/PlayerPanel/PlayerTabContents/TabContainer.jsx src/views/PlayerPanel/PlayerTabContents/TabContents/LiveChannelContents.jsx [원인] 같은 비디오를 클릭할때 dispatch를 클릭할때마다 호출함 [대책] 똑같은 showId를 클릭하면 return
This commit is contained in:
@@ -146,6 +146,7 @@ export default function TabContainer({
|
||||
selectedIndex={selectedIndex}
|
||||
setSelectedIndex={setSelectedIndex}
|
||||
videoVerticalVisible={videoVerticalVisible}
|
||||
currentVideoShowId={playListInfo[selectedIndex]?.showId}
|
||||
liveInfos={playListInfo}
|
||||
tabIndex={tab}
|
||||
handleItemFocus={_handleItemFocus}
|
||||
|
||||
@@ -17,6 +17,7 @@ export default function LiveChannelContents({
|
||||
currentTime,
|
||||
setSelectedIndex,
|
||||
videoVerticalVisible,
|
||||
currentVideoShowId,
|
||||
tabIndex,
|
||||
handleItemFocus,
|
||||
}) {
|
||||
@@ -52,6 +53,9 @@ export default function LiveChannelContents({
|
||||
const handleItemClick = () => {
|
||||
if (!showId) return;
|
||||
|
||||
if (currentVideoShowId && currentVideoShowId === showId) {
|
||||
return;
|
||||
}
|
||||
setSelectedIndex(index);
|
||||
dispatch(
|
||||
updatePanel({
|
||||
@@ -96,7 +100,7 @@ export default function LiveChannelContents({
|
||||
/>
|
||||
);
|
||||
},
|
||||
[liveInfos, currentTime, dispatch, handleFocus]
|
||||
[liveInfos, currentTime, currentVideoShowId, dispatch, handleFocus]
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user