[web] qns/quiz: disable scroll restoration for quiz scroll mode (#1675)
This commit is contained in:
parent
59c6015036
commit
8a00c2d714
|
|
@ -128,6 +128,16 @@ export default function QuestionQuizScrollableList({
|
|||
}, 250);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
// Disable scroll restoration to prevent conflicts with our scrollToIndex
|
||||
window.history.scrollRestoration = 'manual';
|
||||
|
||||
return () => {
|
||||
// Restore original scroll restoration setting
|
||||
window.history.scrollRestoration = 'auto';
|
||||
};
|
||||
}, []);
|
||||
|
||||
useQuestionsAutoMarkAsComplete(currentQuestion);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue