feature/font-fetching-again #16

Merged
ilia merged 7 commits from feature/font-fetching-again into main 2026-01-15 17:12:37 +00:00
Showing only changes of commit 824581551f - Show all commits

View File

@@ -14,7 +14,7 @@ export function createVirtualizer(optionsGetter: () => VirtualizerOptions) {
// Only recalculates when item count or measured sizes change. // Only recalculates when item count or measured sizes change.
const offsets = $derived.by(() => { const offsets = $derived.by(() => {
const count = options.count; const count = options.count;
const result = new Array(count); const result = Array.from({ length: count });
let accumulated = 0; let accumulated = 0;
for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {