fix(ui): restore remove-background toggle and cursor sway default

This commit is contained in:
webadderall
2026-03-17 11:05:55 +11:00
parent 97ebb0de11
commit ba56d5cdb1
2 changed files with 9 additions and 1 deletions
@@ -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);
}
+1 -1
View File
@@ -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 {