fix: place new overlay tracks at the top of the timeline

This commit is contained in:
Maze Winther 2026-04-07 01:18:57 +02:00
parent e4b67094e7
commit e43b859439
2 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ describe("resolveTrackPlacement", () => {
).toEqual({ ).toEqual({
kind: "newTrack", kind: "newTrack",
trackType: "graphic", trackType: "graphic",
insertIndex: 1, insertIndex: 0,
insertPosition: null, insertPosition: null,
}); });
}); });

View File

@ -176,7 +176,7 @@ export function resolveTrackPlacement({
return resolveAlwaysNewTrack({ return resolveAlwaysNewTrack({
tracks, tracks,
trackType, trackType,
position: "default", position: "highest",
}); });
} }