Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
coderabbit
Richie McIlroy62110ccb0457
diff --git a/apps/desktop/src/routes/editor/Editor.tsx b/apps/desktop/src/routes/editor/Editor.tsxindex 21db86bf3..90f2b96d7 100644--- a/apps/desktop/src/routes/editor/Editor.tsx+++ b/apps/desktop/src/routes/editor/Editor.tsx@@ -462,6 +462,16 @@ function Dialogs() {),);+ createEffect(+ on(+ () => currentSegment().index,+ () => {+ setVideoLoaded(false);+ },+ { defer: true },+ ),+ );+createEffect(() => {if (videoRef && videoLoaded()) {videoRef.currentTime = currentSegment().localTime;diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.tsindex 4fc7b59e2..c993c3fcd 100644--- a/apps/desktop/src/routes/editor/context.ts+++ b/apps/desktop/src/routes/editor/context.ts@@ -40,7 +40,10 @@ import {type TimelineConfiguration,type XY,} from "~/utils/tauri";-import { preloadCropVideoMetadata } from "./cropVideoPreloader";+import {+ cleanup as cleanupCropVideoPreloader,+ preloadCropVideoMetadata,+} from "./cropVideoPreloader";import type { MaskSegment } from "./masks";import type { TextSegment } from "./text";import { createProgressBar } from "./utils";@@ -753,6 +756,7 @@ export const [EditorInstanceContextProvider, useEditorInstanceContext] =onCleanup(() => {disposeWorkerReadyEffect?.();+ cleanupCropVideoPreloader();});const [editorInstance] = createResource(async () => {