mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 23:05:49 +00:00
fix(ui): restore remove-background toggle and cursor sway default
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user