chore(VirtualLisr): remove unused imports and change comment

This commit is contained in:
Ilia Mashkov
2026-02-16 15:07:19 +03:00
parent 77668f507c
commit ac8f0456b0

View File

@@ -13,8 +13,6 @@ import { createVirtualizer } from '$shared/lib';
import { throttle } from '$shared/lib/utils';
import { cn } from '$shared/shadcn/utils/shadcn-utils';
import type { Snippet } from 'svelte';
import { flip } from 'svelte/animate';
import { quintOut } from 'svelte/easing';
interface Props {
/**
@@ -187,7 +185,7 @@ $effect(() => {
const throttledVisibleChange = throttle((visibleItems: T[]) => {
onVisibleItemsChange?.(visibleItems);
}, 150); // 150ms debounce
}, 150); // 150ms throttle
const throttledNearBottom = throttle((lastVisibleIndex: number) => {
onNearBottom?.(lastVisibleIndex);