From ba56d5cdb1cc021b72ce71d989d9ab4a2dc3cebf Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Tue, 17 Mar 2026 11:05:55 +1100 Subject: [PATCH] fix(ui): restore remove-background toggle and cursor sway default --- src/components/video-editor/SettingsPanel.tsx | 8 ++++++++ src/components/video-editor/types.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx index 5dd0a51b..13c8ba07 100644 --- a/src/components/video-editor/SettingsPanel.tsx +++ b/src/components/video-editor/SettingsPanel.tsx @@ -253,6 +253,10 @@ export function SettingsPanel({ const [customImages, setCustomImages] = useState( initialEditorPreferences.customWallpapers, ); + const removeBackgroundStateRef = useRef<{ + aspectRatio: AspectRatio; + padding: number; + } | null>(null); const fileInputRef = useRef(null); useEffect(() => { @@ -752,6 +756,10 @@ export function SettingsPanel({ checked={aspectRatio === 'native' && padding === 0} onCheckedChange={(checked) => { if (checked) { + removeBackgroundStateRef.current = { + aspectRatio, + padding, + }; onAspectRatioChange?.('native'); onPaddingChange?.(0); } diff --git a/src/components/video-editor/types.ts b/src/components/video-editor/types.ts index 0c8fae05..ccbaecb7 100644 --- a/src/components/video-editor/types.ts +++ b/src/components/video-editor/types.ts @@ -48,7 +48,7 @@ export const DEFAULT_CURSOR_SIZE = 3.0; export const DEFAULT_CURSOR_SMOOTHING = 0.67; export const DEFAULT_CURSOR_MOTION_BLUR = 0.35; export const DEFAULT_CURSOR_CLICK_BOUNCE = 2.5; -export const DEFAULT_CURSOR_SWAY = 0; +export const DEFAULT_CURSOR_SWAY = 0.25; export const DEFAULT_ZOOM_MOTION_BLUR = 0.35; export interface TrimRegion {