Update timelineThumbnails.ts

This commit is contained in:
WardPearce
2026-02-11 04:35:28 +13:00
parent 303750e4f5
commit 66b1ccc660
+3 -3
View File
@@ -40,6 +40,9 @@ export async function storyboardThumbnails(
for (let sheetIndex = 0; sheetIndex < storyboardCount; sheetIndex++) {
const url = templateUrl.replace('M$M', `M${sheetIndex}`);
// Pre-cache sheet
imageCache.load(url);
for (let i = 0; i < count; i++) {
const localIndex = i % (cols * rows);
const row = Math.floor(localIndex / cols);
@@ -48,9 +51,6 @@ export async function storyboardThumbnails(
const time = Math.floor((globalIndex / totalThumbnails) * videoDurationMs);
// Pre-cache sheet
imageCache.load(url);
thumbnails.push({
url,
time,