[DetailPanel] YouMayLike Click시 Indicator 스크롤 top

This commit is contained in:
고동영
2024-05-30 16:14:26 +09:00
parent b23710f3c6
commit dcc6de1c3f

View File

@@ -141,6 +141,12 @@ function Indicator({
} }
}, [selectedIndex, listImages]); }, [selectedIndex, listImages]);
useEffect(() => {
if (selectedIndex === 0) {
scrollTop();
}
}, [panels, selectedIndex]);
const handleVideoOnClick = useCallback(() => { const handleVideoOnClick = useCallback(() => {
if (canPlayVideo) { if (canPlayVideo) {
dispatch( dispatch(