From 7a6a2ac9ec18542bb2b6ceccde8fe6f297ae2934 Mon Sep 17 00:00:00 2001 From: Alan Trebugeais Date: Sat, 9 May 2026 12:04:12 +0200 Subject: [PATCH] fix SliderControl problems (copilot comments) --- src/components/video-editor/SettingsPanel.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx index bfa6b184..e5ab0979 100644 --- a/src/components/video-editor/SettingsPanel.tsx +++ b/src/components/video-editor/SettingsPanel.tsx @@ -261,21 +261,21 @@ function ExtensionSettingsSection({ ); } - if (field.type === "slider") { - const step = field.step ?? 1; + if (field.type === "slider") { + const step = field.step ?? 0.01; const stepText = String(step); const precision = stepText.includes(".") ? stepText.split(".")[1]?.length ?? 0 : 0; return (
- { extensionHost.setExtensionSetting(extensionId, field.id, v); forceUpdate((n) => n + 1);