fix the behaviour bugs in capture, encode and the overlay poller

This commit is contained in:
2026-09-21 06:26:29 +03:00
parent b33ce5bf77
commit af30963223
4 changed files with 175 additions and 90 deletions
+4 -2
View File
@@ -409,11 +409,13 @@
// preview so one debounced render fires per change-burst - previously the
// debounced effect here and TrimPanel's synchronous onAfterChange could
// both trigger a render for the same change.
//
// Trim and crop are deliberately not inputs: render_preview samples the middle
// of the whole clip and ignores both, so depending on them bought an extra
// ffmpeg run per drag that could not change a pixel.
$effect(() => {
void phase; void format; void fps; void targetMB
void gifBudgetMode; void gifDither; void gifColors
void trimStart; void trimEnd
void cropEnabled; void cropX; void cropY; void cropW; void cropH
if (phase === "editing" && format) {
const timer = window.setTimeout(() => { void refreshPreview() }, 300)
return () => { clearTimeout(timer) }