put "between segments" behind markers

pull/2233/head
Mikael Finstad 1 year ago
parent ccf3e5ab04
commit c555ce8797
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -396,6 +396,16 @@ function Timeline({
style={{ height: timelineHeight, width: `${zoom * 100}%`, position: 'relative', backgroundColor: timelineBackground, transition: darkModeTransition }}
ref={timelineWrapperRef}
>
{inverseCutSegments.map((seg) => (
<BetweenSegments
key={seg.segId}
start={seg.start}
end={seg.end}
fileDurationNonZero={fileDurationNonZero}
invertCutSegments={invertCutSegments}
/>
))}
{cutSegments.map((seg, i) => {
const selected = invertCutSegments || isSegmentSelected({ segId: seg.segId });
@ -414,16 +424,6 @@ function Timeline({
);
})}
{inverseCutSegments.map((seg) => (
<BetweenSegments
key={seg.segId}
start={seg.start}
end={seg.end}
fileDurationNonZero={fileDurationNonZero}
invertCutSegments={invertCutSegments}
/>
))}
{shouldShowKeyframes && !areKeyframesTooClose && keyFramesInZoomWindow.map((f) => (
<div key={f.time} style={{ position: 'absolute', top: 0, bottom: 0, left: `${(f.time / fileDurationNonZero) * 100}%`, marginLeft: -1, width: 1, background: 'var(--gray11)', pointerEvents: 'none' }} />
))}

Loading…
Cancel
Save