diff --git a/src/helpers/renderer.js b/src/helpers/renderer.js index dee9045..f8d40a0 100644 --- a/src/helpers/renderer.js +++ b/src/helpers/renderer.js @@ -237,6 +237,7 @@ export function updateActiveLessonInSidebar(moduleId, lessonIndex) { // Scroll to the top of the page document.querySelector("html").scrollTop = 0; + document.body.scrollTop = 0; // Scroll to the current lesson item currentLessonItem.scrollIntoView({ behavior: "smooth", block: "nearest" }); }