Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(timeline): say that Alt slips, instead of leaving it to be discovered
EtienneLescotb9224ecbf878
diff --git a/src/components/ai-edition/v4/EditorShellV4.module.css b/src/components/ai-edition/v4/EditorShellV4.module.cssindex 1b872e8e8..5347d66f0 100644--- a/src/components/ai-edition/v4/EditorShellV4.module.css+++ b/src/components/ai-edition/v4/EditorShellV4.module.css@@ -1559,6 +1559,12 @@top: 1px;cursor: pointer;}+/* Alt is held: the next drag on this pill slides the file under it rather than+ moving the pill. The cursor is the confirmation, not the lesson — the tooltip+ carries the words. */+.laneAudioSlip {+ cursor: ew-resize;+}.laneAudio:active {cursor: pointer;}diff --git a/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx b/src/components/ai-edition/v4/V4Timeline.geometry.test.tsxindex 982d45dae..5d668f6ff 100644--- a/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx+++ b/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx@@ -480,7 +480,7 @@ describe("V4Timeline audio lane drag", () => {// eager lookup would throw before their own assertions ran.return {get pill() {- return screen.getByTitle("vo");+ return screen.getByTitle((t) => t.startsWith("vo "));},container,placeAudioTrack,@@ -533,7 +533,9 @@ describe("V4Timeline audio lane drag", () => {{ ...makeTrack(), id: "b", label: "b", startMs: 10_000, endMs: 70_000 },{ ...makeTrack(), id: "c", label: "c", startMs: 20_000, endMs: 80_000 },]);- const tops = ["a", "b", "c"].map((l) => (screen.getByTitle(l) as HTMLElement).style.top);+ const tops = ["a", "b", "c"].map(+ (l) => (screen.getByTitle((t) => t.startsWith(`${l} `)) as HTMLElement).style.top,+ );expect(new Set(tops).size).toBe(3);// ...and the lane grew to hold them rather than clipping.const lane = container.querySelector('[class*="tlLaneAudio"]') as HTMLElement;@@ -545,7 +547,9 @@ describe("V4Timeline audio lane drag", () => {{ ...makeTrack(), id: "a", label: "a", startMs: 0, endMs: 10_000 },{ ...makeTrack(), id: "b", label: "b", startMs: 20_000, endMs: 30_000 },]);- const tops = ["a", "b"].map((l) => (screen.getByTitle(l) as HTMLElement).style.top);+ const tops = ["a", "b"].map(+ (l) => (screen.getByTitle((t) => t.startsWith(`${l} `)) as HTMLElement).style.top,+ );expect(new Set(tops).size).toBe(1);});diff --git a/src/components/ai-edition/v4/V4Timeline.tsx b/src/components/ai-edition/v4/V4Timeline.tsxindex b30154b51..c847e7c66 100644--- a/src/components/ai-edition/v4/V4Timeline.tsx+++ b/src/components/ai-edition/v4/V4Timeline.tsx@@ -380,6 +380,8 @@ const AudioLanePill = memo(function AudioLanePill({onStartDrag,onSelect,label,+ slipHint,+ slipArmed,outputGain,ghost,}: {@@ -404,6 +406,13 @@ const AudioLanePill = memo(function AudioLanePill({onStartDrag: (e: ReactPointerEvent, track: AxcutAudioTrack, mode: "move" | "l" | "r") => void;onSelect: (id: string) => void;label: string;+ /** Appended to the pill's tooltip. A modifier is never discoverable on its own —+ * you either read it somewhere or you never find it — and the tooltip is where a+ * user already looks to ask what a thing does. */+ slipHint: string;+ /** True while Alt is held, so the pill can say the next drag will slip rather than+ * move. Confirms the modifier; the tooltip is what teaches it. */+ slipArmed: boolean;/** Linear project output gain, applied on top of the track gain — the mixer* applies both, so the bars must too or they under-read the exported level. */outputGain: number;@@ -448,7 +457,7 @@ const AudioLanePill = memo(function AudioLanePill({tabIndex={0}className={`${styles.lanePill} ${styles.laneAudio}${selected ? ` ${styles.lanePillSel}` : ""- }`}+ }${slipArmed ? ` ${styles.laneAudioSlip}` : ""}`}style={{left: `${leftPct}%`,width: `${widthPct}%`,@@ -464,7 +473,7 @@ const AudioLanePill = memo(function AudioLanePill({onSelect(track.id);}}}- title={label}+ title={`${label} — ${slipHint}`}><spanclassName={styles.lanePillHandle}@@ -995,6 +1004,25 @@ export function V4Timeline({const audioPills = useMemo(() => collapseTracksToPills(tl.audioTracks), [tl.audioTracks]);const audioRows = useMemo(() => packAudioTrackRows(audioPills), [audioPills]);+ // Whether Alt is held, so an audio pill can show that the next drag slips. Window+ // listeners rather than per-pill handlers: the key is pressed BEFORE the pointer+ // reaches the pill as often as after it, so a pill-local listener would miss the+ // case the affordance exists for. `blur` clears it because a modifier held while+ // the window loses focus never sends its keyup.+ const [slipArmed, setSlipArmed] = useState(false);+ useEffect(() => {+ const sync = (e: KeyboardEvent) => setSlipArmed(e.altKey);+ const clear = () => setSlipArmed(false);+ window.addEventListener("keydown", sync);+ window.addEventListener("keyup", sync);+ window.addEventListener("blur", clear);+ return () => {+ window.removeEventListener("keydown", sync);+ window.removeEventListener("keyup", sync);+ window.removeEventListener("blur", clear);+ };+ }, []);+// Drag an audio track: "move" slides the head (both edges together), "l"/"r"// trim the in/out points. The left edge moves the head AND the in-point so the// right edge stays put — hence the single placeAudioTrack commit on release.@@ -2052,6 +2080,8 @@ export function V4Timeline({onStartDrag={startAudioDrag}onSelect={tl.selectAudioTrack}label={track.label || asset?.label || ts("audioTrack.defaultLabel")}+ slipHint={ts("audioTrack.slipHint")}+ slipArmed={slipArmed}outputGain={audioGainScalar(settings.audioGainDb)}ghost={((g) =>gdiff --git a/src/i18n/locales/ar/settings.json b/src/i18n/locales/ar/settings.jsonindex 61a989c16..a02275e8d 100644--- a/src/i18n/locales/ar/settings.json+++ b/src/i18n/locales/ar/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "إضافة مسار صوتي",- "importFailed": "تعذّر إضافة الصوت","defaultLabel": "مسار صوتي",- "help": "مستوى الصوت والتلاشي والتكرار لهذا المسار الصوتي. يُمزج فوق التسجيل في المعاينة والتصدير. اسحب المسار على المخطط الزمني لتحريكه أو تغيير حجمه.","fadeIn": "تلاشٍ للداخل","fadeOut": "تلاشٍ للخارج",- "mute": "كتم",+ "help": "مستوى الصوت والتلاشي والتكرار لهذا المسار الصوتي. يُمزج فوق التسجيل في المعاينة والتصدير. اسحب المسار على المخطط الزمني لتحريكه أو تغيير حجمه.",+ "importFailed": "تعذّر إضافة الصوت","loop": "تكرار",- "remove": "حذف المسار"+ "mute": "كتم",+ "remove": "حذف المسار",+ "slipHint": "اضغط Alt واسحب لتحريك الصوت بالداخل"}}diff --git a/src/i18n/locales/en/settings.json b/src/i18n/locales/en/settings.jsonindex 076a55a3c..aa7424cc1 100644--- a/src/i18n/locales/en/settings.json+++ b/src/i18n/locales/en/settings.json@@ -81,14 +81,15 @@},"audioTrack": {"add": "Add audio track",- "importFailed": "Could not add audio","defaultLabel": "Audio track",- "help": "Volume, fades and looping for this audio track. It mixes over the recording in the preview and the export. Drag the track on the timeline to move or resize it.","fadeIn": "Fade in","fadeOut": "Fade out",- "mute": "Mute",+ "help": "Volume, fades and looping for this audio track. It mixes over the recording in the preview and the export. Drag the track on the timeline to move or resize it.",+ "importFailed": "Could not add audio","loop": "Loop",- "remove": "Delete track"+ "mute": "Mute",+ "remove": "Delete track",+ "slipHint": "Alt-drag to slide the audio inside it"},"effects": {"title": "Composition",diff --git a/src/i18n/locales/es/settings.json b/src/i18n/locales/es/settings.jsonindex 2fdc3eff6..b05af0712 100644--- a/src/i18n/locales/es/settings.json+++ b/src/i18n/locales/es/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "Añadir pista de audio",- "importFailed": "No se pudo añadir el audio","defaultLabel": "Pista de audio",- "help": "Volumen, fundidos y bucle de esta pista de audio. Se mezcla sobre la grabación en la vista previa y la exportación. Arrastra la pista en la línea de tiempo para moverla o redimensionarla.","fadeIn": "Aparición","fadeOut": "Desvanecido",- "mute": "Silenciar",+ "help": "Volumen, fundidos y bucle de esta pista de audio. Se mezcla sobre la grabación en la vista previa y la exportación. Arrastra la pista en la línea de tiempo para moverla o redimensionarla.",+ "importFailed": "No se pudo añadir el audio","loop": "Bucle",- "remove": "Eliminar pista"+ "mute": "Silenciar",+ "remove": "Eliminar pista",+ "slipHint": "Alt + arrastrar para desplazar el audio dentro"}}diff --git a/src/i18n/locales/fr/settings.json b/src/i18n/locales/fr/settings.jsonindex 331eceb74..56c601a89 100644--- a/src/i18n/locales/fr/settings.json+++ b/src/i18n/locales/fr/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "Ajouter une piste audio",- "importFailed": "Impossible d’ajouter l’audio","defaultLabel": "Piste audio",- "help": "Volume, fondus et boucle de cette piste audio. Elle se mixe par-dessus l'enregistrement dans l'aperçu et à l'export. Faites glisser la piste sur la timeline pour la déplacer ou la redimensionner.","fadeIn": "Fondu d'entrée","fadeOut": "Fondu de sortie",- "mute": "Muet",+ "help": "Volume, fondus et boucle de cette piste audio. Elle se mixe par-dessus l'enregistrement dans l'aperçu et à l'export. Faites glisser la piste sur la timeline pour la déplacer ou la redimensionner.",+ "importFailed": "Impossible d’ajouter l’audio","loop": "Boucle",- "remove": "Supprimer la piste"+ "mute": "Muet",+ "remove": "Supprimer la piste",+ "slipHint": "Alt + glisser pour faire défiler l’audio à l’intérieur"}}diff --git a/src/i18n/locales/it/settings.json b/src/i18n/locales/it/settings.jsonindex b4175f2a8..fbb45515a 100644--- a/src/i18n/locales/it/settings.json+++ b/src/i18n/locales/it/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "Aggiungi traccia audio",- "importFailed": "Impossibile aggiungere l’audio","defaultLabel": "Traccia audio",- "help": "Volume, dissolvenze e ripetizione di questa traccia audio. Si mixa sopra la registrazione nell'anteprima e nell'esportazione. Trascina la traccia sulla timeline per spostarla o ridimensionarla.","fadeIn": "Dissolvenza in entrata","fadeOut": "Dissolvenza in uscita",- "mute": "Muto",+ "help": "Volume, dissolvenze e ripetizione di questa traccia audio. Si mixa sopra la registrazione nell'anteprima e nell'esportazione. Trascina la traccia sulla timeline per spostarla o ridimensionarla.",+ "importFailed": "Impossibile aggiungere l’audio","loop": "Ripeti",- "remove": "Elimina traccia"+ "mute": "Muto",+ "remove": "Elimina traccia",+ "slipHint": "Alt + trascina per far scorrere l’audio all’interno"}}diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.jsonindex 484a2c335..b1e0b3a33 100644--- a/src/i18n/locales/ja-JP/settings.json+++ b/src/i18n/locales/ja-JP/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "オーディオトラックを追加",- "importFailed": "オーディオを追加できませんでした","defaultLabel": "オーディオトラック",- "help": "このオーディオトラックの音量、フェード、ループ。プレビューと書き出しの両方で録画にミックスされます。タイムライン上でドラッグすると移動やサイズ変更ができます。","fadeIn": "フェードイン","fadeOut": "フェードアウト",- "mute": "ミュート",+ "help": "このオーディオトラックの音量、フェード、ループ。プレビューと書き出しの両方で録画にミックスされます。タイムライン上でドラッグすると移動やサイズ変更ができます。",+ "importFailed": "オーディオを追加できませんでした","loop": "ループ",- "remove": "トラックを削除"+ "mute": "ミュート",+ "remove": "トラックを削除",+ "slipHint": "Alt を押しながらドラッグで中の音声をずらす"}}diff --git a/src/i18n/locales/ko-KR/settings.json b/src/i18n/locales/ko-KR/settings.jsonindex 816b56b69..789ab6ea0 100644--- a/src/i18n/locales/ko-KR/settings.json+++ b/src/i18n/locales/ko-KR/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "오디오 트랙 추가",- "importFailed": "오디오를 추가할 수 없습니다","defaultLabel": "오디오 트랙",- "help": "이 오디오 트랙의 볼륨, 페이드, 반복입니다. 미리보기와 내보내기에서 녹화 위에 믹스됩니다. 타임라인에서 트랙을 끌어 이동하거나 크기를 조절하세요.","fadeIn": "페이드 인","fadeOut": "페이드 아웃",- "mute": "음소거",+ "help": "이 오디오 트랙의 볼륨, 페이드, 반복입니다. 미리보기와 내보내기에서 녹화 위에 믹스됩니다. 타임라인에서 트랙을 끌어 이동하거나 크기를 조절하세요.",+ "importFailed": "오디오를 추가할 수 없습니다","loop": "반복",- "remove": "트랙 삭제"+ "mute": "음소거",+ "remove": "트랙 삭제",+ "slipHint": "Alt 를 누른 채 드래그하면 안의 오디오가 이동합니다"}}diff --git a/src/i18n/locales/pt-BR/settings.json b/src/i18n/locales/pt-BR/settings.jsonindex 968dd6b15..15ef6ad54 100644--- a/src/i18n/locales/pt-BR/settings.json+++ b/src/i18n/locales/pt-BR/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "Adicionar faixa de áudio",- "importFailed": "Não foi possível adicionar o áudio","defaultLabel": "Faixa de áudio",- "help": "Volume, fades e repetição desta faixa de áudio. Ela é mixada sobre a gravação na prévia e na exportação. Arraste a faixa na linha do tempo para movê-la ou redimensioná-la.","fadeIn": "Fade in","fadeOut": "Fade out",- "mute": "Silenciar",+ "help": "Volume, fades e repetição desta faixa de áudio. Ela é mixada sobre a gravação na prévia e na exportação. Arraste a faixa na linha do tempo para movê-la ou redimensioná-la.",+ "importFailed": "Não foi possível adicionar o áudio","loop": "Repetir",- "remove": "Excluir faixa"+ "mute": "Silenciar",+ "remove": "Excluir faixa",+ "slipHint": "Alt + arrastar para deslizar o áudio dentro"}}diff --git a/src/i18n/locales/ru/settings.json b/src/i18n/locales/ru/settings.jsonindex 3ecc1e549..e4280c947 100644--- a/src/i18n/locales/ru/settings.json+++ b/src/i18n/locales/ru/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "Добавить аудиодорожку",- "importFailed": "Не удалось добавить аудио","defaultLabel": "Аудиодорожка",- "help": "Громкость, затухания и повтор этой аудиодорожки. Она подмешивается к записи в предпросмотре и при экспорте. Перетащите дорожку на таймлайне, чтобы переместить или изменить её размер.","fadeIn": "Нарастание","fadeOut": "Затухание",- "mute": "Без звука",+ "help": "Громкость, затухания и повтор этой аудиодорожки. Она подмешивается к записи в предпросмотре и при экспорте. Перетащите дорожку на таймлайне, чтобы переместить или изменить её размер.",+ "importFailed": "Не удалось добавить аудио","loop": "Повтор",- "remove": "Удалить дорожку"+ "mute": "Без звука",+ "remove": "Удалить дорожку",+ "slipHint": "Alt + перетаскивание — сдвинуть аудио внутри"}}diff --git a/src/i18n/locales/tr/settings.json b/src/i18n/locales/tr/settings.jsonindex 50a7f2609..d6c95329f 100644--- a/src/i18n/locales/tr/settings.json+++ b/src/i18n/locales/tr/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "Ses parçası ekle",- "importFailed": "Ses eklenemedi","defaultLabel": "Ses parçası",- "help": "Bu ses parçasının seviyesi, geçişleri ve döngüsü. Önizlemede ve dışa aktarmada kaydın üzerine miksleniyor. Parçayı zaman çizelgesinde sürükleyerek taşıyın veya yeniden boyutlandırın.","fadeIn": "Açılma","fadeOut": "Kararma",- "mute": "Sessiz",+ "help": "Bu ses parçasının seviyesi, geçişleri ve döngüsü. Önizlemede ve dışa aktarmada kaydın üzerine miksleniyor. Parçayı zaman çizelgesinde sürükleyerek taşıyın veya yeniden boyutlandırın.",+ "importFailed": "Ses eklenemedi","loop": "Döngü",- "remove": "Parçayı sil"+ "mute": "Sessiz",+ "remove": "Parçayı sil",+ "slipHint": "İçindeki sesi kaydırmak için Alt ile sürükleyin"}}diff --git a/src/i18n/locales/vi/settings.json b/src/i18n/locales/vi/settings.jsonindex 7944e442b..67826d287 100644--- a/src/i18n/locales/vi/settings.json+++ b/src/i18n/locales/vi/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "Thêm bản âm thanh",- "importFailed": "Không thể thêm âm thanh","defaultLabel": "Bản âm thanh",- "help": "Âm lượng, hiệu ứng mờ và lặp cho bản âm thanh này. Nó được trộn lên trên bản ghi ở cả xem trước và xuất. Kéo bản trên dòng thời gian để di chuyển hoặc đổi kích thước.","fadeIn": "Mờ vào","fadeOut": "Mờ ra",- "mute": "Tắt tiếng",+ "help": "Âm lượng, hiệu ứng mờ và lặp cho bản âm thanh này. Nó được trộn lên trên bản ghi ở cả xem trước và xuất. Kéo bản trên dòng thời gian để di chuyển hoặc đổi kích thước.",+ "importFailed": "Không thể thêm âm thanh","loop": "Lặp",- "remove": "Xóa bản nhạc"+ "mute": "Tắt tiếng",+ "remove": "Xóa bản nhạc",+ "slipHint": "Giữ Alt và kéo để trượt âm thanh bên trong"}}diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.jsonindex 25093113d..abc6b4872 100644--- a/src/i18n/locales/zh-CN/settings.json+++ b/src/i18n/locales/zh-CN/settings.json@@ -329,13 +329,14 @@},"audioTrack": {"add": "添加音频轨道",- "importFailed": "无法添加音频","defaultLabel": "音频轨道",- "help": "该音频轨道的音量、淡入淡出和循环。它会在预览和导出时混合到录制内容之上。在时间轴上拖动轨道可移动或调整大小。","fadeIn": "淡入","fadeOut": "淡出",- "mute": "静音",+ "help": "该音频轨道的音量、淡入淡出和循环。它会在预览和导出时混合到录制内容之上。在时间轴上拖动轨道可移动或调整大小。",+ "importFailed": "无法添加音频","loop": "循环",- "remove": "删除轨道"+ "mute": "静音",+ "remove": "删除轨道",+ "slipHint": "按住 Alt 拖动可在其中滑动音频"}}diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.jsonindex 1179aa3e2..e5c1f8ff6 100644--- a/src/i18n/locales/zh-TW/settings.json+++ b/src/i18n/locales/zh-TW/settings.json@@ -330,13 +330,14 @@},"audioTrack": {"add": "新增音訊軌道",- "importFailed": "無法新增音訊","defaultLabel": "音訊軌道",- "help": "該音訊軌道的音量、淡入淡出與循環。它會在預覽與匯出時混合到錄製內容之上。在時間軸上拖曳軌道可移動或調整大小。","fadeIn": "淡入","fadeOut": "淡出",- "mute": "靜音",+ "help": "該音訊軌道的音量、淡入淡出與循環。它會在預覽與匯出時混合到錄製內容之上。在時間軸上拖曳軌道可移動或調整大小。",+ "importFailed": "無法新增音訊","loop": "循環",- "remove": "刪除軌道"+ "mute": "靜音",+ "remove": "刪除軌道",+ "slipHint": "按住 Alt 拖曳可在其中滑動音訊"}}