misc: tweak measuring

This commit is contained in:
Xylight committed 2024-07-04 16:43:26 -07:00
1 parent 86f4bec26d
commit d936f8f035
2 files changed
+4 -1

No files matched your search

@@ -8,8 +8,9 @@
import { expoOut } from 'svelte/easing'
import { fly, slide } from 'svelte/transition'
import { browser } from '$app/environment'
import { afterUpdate, type SvelteComponent } from 'svelte'
import { afterUpdate, onMount, tick, type SvelteComponent } from 'svelte'
import { createWindowVirtualizer } from '@tanstack/svelte-virtual'
import { afterNavigate, beforeNavigate } from '$app/navigation'
type PostViewWithCrossposts = PostView & {
withCrossposts: true
+2
View File
@@ -40,9 +40,11 @@
if (browser) {
if ($navigating) {
nProgress.start()
console.log(`saving scroll at ${window.scrollY}`)
}
if (!$navigating) {
nProgress.done()
console.log(`scrolling to ${window.scrollY}`)
}
}
}