[PlayerPanel] chat currentTime 갱신 && 주석제거

This commit is contained in:
고동영
2024-06-12 21:15:51 +09:00
parent e956ca4a1d
commit 904d1ba31d
2 changed files with 2 additions and 5 deletions

View File

@@ -37,9 +37,9 @@ export default function PlayerOverlayChat({
chatData
.filter((item) => currentTime * 1000 >= item.offset)
.sort((a, b) => b.offset - a.offset)
.slice(0, videoVerticalVisible ? 5 : 3)
.slice(0, videoVerticalVisible ? 4 : 3)
);
}, [chatData, videoVerticalVisible]);
}, [chatData, currentTime, videoVerticalVisible]);
useEffect(() => {
const filteredChats = filterAndSelectRecentChat();

View File

@@ -536,9 +536,6 @@ const PlayerPanel = ({
return false;
}, [playListInfo, chatData, panelInfo.modal, isOnTop]);
console.log("#chatVisible", chatVisible);
console.log("#chatData", chatData);
const isQRCodeVisible = useMemo(() => {
if (playListInfo && shopNowInfo && !panelInfo.modal) {
return true;