update: svelte, kit, tailwindcss, vite
This commit is contained in:
3 files changed
+79
-63
No files matched your search
@@ -175,12 +175,12 @@
|
||||
let oldScroll = $state(0)
|
||||
$effect(() => {
|
||||
const currentScrollY = scrollY ?? 0
|
||||
if (Math.abs(currentScrollY - oldScroll) > estimatedHeight) {
|
||||
untrack(() => {
|
||||
untrack(() => {
|
||||
if (Math.abs(currentScrollY - oldScroll) > estimatedHeight) {
|
||||
visibleItems = updateVisibleItems()
|
||||
oldScroll = currentScrollY
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
onMount(() => {
|
||||
|
||||
Reference in new issue
Block a user