Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
improvement: support cutting during playback (#969)
Ameer Al Ashhab42a1d474a993
diff --git a/apps/desktop/src/routes/editor/Timeline/index.tsx b/apps/desktop/src/routes/editor/Timeline/index.tsxindex 65735d406..ad80857c9 100644--- a/apps/desktop/src/routes/editor/Timeline/index.tsx+++ b/apps/desktop/src/routes/editor/Timeline/index.tsx@@ -130,9 +130,11 @@ export function Timeline() {projectActions.deleteSceneSegment(selection.index);}} else if (e.code === "KeyC" && hasNoModifiers) {- if (!editorState.previewTime) return;+ // Allow cutting while playing: use playbackTime when previewTime is null+ const time = editorState.previewTime ?? editorState.playbackTime;+ if (time === null || time === undefined) return;- projectActions.splitClipSegment(editorState.previewTime);+ projectActions.splitClipSegment(time);} else if (e.code === "Escape" && hasNoModifiers) {// Deselect all selected segmentssetEditorState("timeline", "selection", null);