From dcc6de1c3f5b86e0845d21426abe1e828d4bc6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B3=A0=EB=8F=99=EC=98=81?= Date: Thu, 30 May 2024 16:14:26 +0900 Subject: [PATCH] =?UTF-8?q?[DetailPanel]=20YouMayLike=20Click=EC=8B=9C=20I?= =?UTF-8?q?ndicator=20=EC=8A=A4=ED=81=AC=EB=A1=A4=20top?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/DetailPanel/components/indicator/Indicator.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/components/indicator/Indicator.jsx b/com.twin.app.shoptime/src/views/DetailPanel/components/indicator/Indicator.jsx index adf249a2..efb63f35 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/components/indicator/Indicator.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/components/indicator/Indicator.jsx @@ -141,6 +141,12 @@ function Indicator({ } }, [selectedIndex, listImages]); + useEffect(() => { + if (selectedIndex === 0) { + scrollTop(); + } + }, [panels, selectedIndex]); + const handleVideoOnClick = useCallback(() => { if (canPlayVideo) { dispatch(