diff --git a/src/components/Course/components/Navigation/index.svelte b/src/components/Course/components/Navigation/index.svelte index 2fced1bb..77ed6ee5 100644 --- a/src/components/Course/components/Navigation/index.svelte +++ b/src/components/Course/components/Navigation/index.svelte @@ -36,7 +36,7 @@ function handleMainGroupClick(href) { return () => { if ($isMobile) { - show = false; + setTimeout(() => (show = false), 500); } goto(href); }; @@ -170,7 +170,11 @@ href={isStudent && !item.is_complete ? $page.path : getLessonsRoute($course.id, item.id)} - on:click={() => $isMobile && (show = false)} + on:click={() => { + if ($isMobile) { + setTimeout(() => (show = false), 500); + } + }} > {getLectureNo(index + 1)}