Open source CapCut alternative.
TypeScript
fix(site): seek 1s per arrow key while playing in Cut timeline, not 2s
David Led154a52bfd6a
diff --git a/site/src/cut/components/Editor.tsx b/site/src/cut/components/Editor.tsxindex 4b6c9ed4..0a0f9862 100644--- a/site/src/cut/components/Editor.tsx+++ b/site/src/cut/components/Editor.tsx@@ -373,10 +373,10 @@ export function Editor({s.addOverlay();} else if ((e.key === "ArrowLeft" || e.key === "ArrowRight") && !controlFocused) {e.preventDefault();- // While playing, arrows skip in 2s jumps and playback rolls on (seek+ // While playing, arrows skip in 1s jumps and playback rolls on (seek// never pauses); paused, they step a frame — 1s with Shift — for// precise editing.- const step = s.playing ? 2 : e.shiftKey ? 1 : 1 / 30;+ const step = s.playing ? 1 : e.shiftKey ? 1 : 1 / 30;s.seek(s.currentTime + (e.key === "ArrowLeft" ? -step : step));} else if (e.key === "Escape") {s.select(null);