diff --git a/frontend/src/pages/SurveyPage.tsx b/frontend/src/pages/SurveyPage.tsx index f77a2abf..44c0d507 100644 --- a/frontend/src/pages/SurveyPage.tsx +++ b/frontend/src/pages/SurveyPage.tsx @@ -188,7 +188,9 @@ export default function SurveyPage() { const goSlide = (idx: number) => { setCurrentSlide(idx) - window.scrollTo({ top: 0, behavior: 'smooth' }) + requestAnimationFrame(() => { + window.scrollTo({ top: 0, behavior: 'smooth' }) + }) } const handleSubmit = async () => {