From 7d4e166678c35d48b22b8d1d05639f981a956a8b Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 13 Apr 2026 04:41:33 +0200 Subject: fix: text measurement, rotation handle, video cache races, playback sync Made-with: Cursor --- apps/web/src/hooks/use-preview-interaction.ts | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'apps/web/src/hooks') diff --git a/apps/web/src/hooks/use-preview-interaction.ts b/apps/web/src/hooks/use-preview-interaction.ts index 2a3e5c28..cfb3d527 100644 --- a/apps/web/src/hooks/use-preview-interaction.ts +++ b/apps/web/src/hooks/use-preview-interaction.ts @@ -134,15 +134,6 @@ export function usePreviewInteraction({ const current = editingTextRef.current; if (!current) return; editingTextRef.current = null; - editor.timeline.previewElements({ - updates: [ - { - trackId: current.trackId, - elementId: current.elementId, - updates: { opacity: current.originalOpacity }, - }, - ], - }); editor.timeline.commitPreview(); setEditingText(null); }, [editor.timeline]); @@ -207,15 +198,6 @@ export function usePreviewInteraction({ if (!hit || hit.element.type !== "text") return; const textElement = hit.element as TextElement; - editor.timeline.previewElements({ - updates: [ - { - trackId: hit.trackId, - elementId: hit.elementId, - updates: { opacity: 0 }, - }, - ], - }); setEditingText({ trackId: hit.trackId, elementId: hit.elementId, -- cgit v1.3.1