[DetailPanel] YouMayLike Click시 Indicator 스크롤 top
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user