Create polished demo videos without editing skills. Mac/Windows/Linux
fix(ui): restore remove-background toggle and cursor sway default
webadderall54292f9eb82d
diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsxindex 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<string[]>(initialEditorPreferences.customWallpapers,);+ const removeBackgroundStateRef = useRef<{+ aspectRatio: AspectRatio;+ padding: number;+ } | null>(null);const fileInputRef = useRef<HTMLInputElement>(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.tsindex 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 {