diff --git a/frontend/src/components/ScrollToTop.jsx b/frontend/src/components/ScrollToTop.jsx index 1a865da..d74e45f 100644 --- a/frontend/src/components/ScrollToTop.jsx +++ b/frontend/src/components/ScrollToTop.jsx @@ -6,7 +6,14 @@ function ScrollToTop() { const { pathname } = useLocation(); useEffect(() => { + // window 스크롤 초기화 window.scrollTo(0, 0); + + // 모바일 레이아웃 스크롤 컨테이너 초기화 + const mobileContent = document.querySelector('.mobile-content'); + if (mobileContent) { + mobileContent.scrollTop = 0; + } }, [pathname]); return null;