diff --git a/src/components/page-drawer.svelte b/src/components/page-drawer.svelte index 63d83369..a7c395b6 100644 --- a/src/components/page-drawer.svelte +++ b/src/components/page-drawer.svelte @@ -9,9 +9,16 @@ import { page } from '$app/stores'; import { fetchPage } from '$lib/content'; import { setContext } from 'svelte'; + import clsx from 'clsx'; + let isSticky = true; let expanding = false; + function handleScroll(event: Event) { + const target = event.target as HTMLElement; + isSticky = target.scrollTop !== 0; + } + setContext('drawer', true); @@ -29,11 +36,17 @@ on:click={drawer.close} />