fix the behaviour bugs in capture, encode and the overlay poller
This commit is contained in:
+4
-2
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user