Skip to content

Commit 05fdaaa

Browse files
MinitJainclaude
andcommitted
fix(editor): clamp keyboard segments at trim boundary
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7830918 commit 05fdaaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function KeyboardTrack(props: {
165165
isSelected() ? "border-sky-7" : "border-transparent",
166166
)}
167167
innerClass="ring-sky-6"
168-
segment={segment}
168+
segment={{ start: segment.start, end: Math.min(segment.end, totalDuration()) }}
169169
onMouseDown={(e) => {
170170
e.stopPropagation();
171171
if (editorState.timeline.interactMode === "split") {

0 commit comments

Comments
 (0)