diff options
author | axtloss <axtlos@disroot.org> | 2024-12-24 19:25:48 +0100 |
---|---|---|
committer | axtloss <axtlos@disroot.org> | 2024-12-24 20:04:59 +0100 |
commit | e46cb88d3763a64e97557b2db2f9b74ae7627555 (patch) | |
tree | 9c00ad1e59f4fdc36e050d9329eb7cfdeb0588d2 /src/lib/navigation.ts | |
parent | c19fb8828e1dfdd4ce548269ff7cf08de96adf95 (diff) | |
download | website-e46cb88d3763a64e97557b2db2f9b74ae7627555.tar.gz website-e46cb88d3763a64e97557b2db2f9b74ae7627555.tar.bz2 |
new website dropped
Diffstat (limited to 'src/lib/navigation.ts')
-rw-r--r-- | src/lib/navigation.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/navigation.ts b/src/lib/navigation.ts deleted file mode 100644 index c759d97..0000000 --- a/src/lib/navigation.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { derived } from 'svelte/store'; -import { navigating } from '$app/stores'; - -let timer: ReturnType<typeof setTimeout> = null; -export const isNavigating = derived(navigating, (newValue, set) => { - if (timer) { - clearTimeout(timer); - } - if (newValue) { - timer = setTimeout(() => set(true), 500); - } - set(false); -}); |