diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 08fee9f133..e07a51c616 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -65,6 +65,8 @@ const BREAKPOINT = 768; + let scrollTop = 0; + let navElement; let shiftKey = false; @@ -704,7 +706,7 @@ : 'invisible'}" > -
+
{ + if (e.target.scrollTop === 0) { + scrollTop = 0; + } else { + scrollTop = e.target.scrollTop; + } + }} + >