mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: place new overlay tracks at the top of the timeline
This commit is contained in:
@@ -329,7 +329,7 @@ describe("resolveTrackPlacement", () => {
|
|||||||
).toEqual({
|
).toEqual({
|
||||||
kind: "newTrack",
|
kind: "newTrack",
|
||||||
trackType: "graphic",
|
trackType: "graphic",
|
||||||
insertIndex: 1,
|
insertIndex: 0,
|
||||||
insertPosition: null,
|
insertPosition: null,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ export function resolveTrackPlacement({
|
|||||||
return resolveAlwaysNewTrack({
|
return resolveAlwaysNewTrack({
|
||||||
tracks,
|
tracks,
|
||||||
trackType,
|
trackType,
|
||||||
position: "default",
|
position: "highest",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user