Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(launch): make post-recording auto-zoom systematic and remove toggle button

EtienneLescot35edf70b51ac
diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts
index 7b6d64d2d..b3ae42364 100644
--- a/electron/ipc/handlers.ts
+++ b/electron/ipc/handlers.ts
@@ -621,8 +621,6 @@ export interface RecordingPrefs {
camDeviceId: string | null;
systemAudioEnabled: boolean;
cursorCaptureMode: CursorCaptureMode;
- /** After a take, suggest cursor-dwell zooms. Default on, matching 1.5. */
- autoZoomEnabled: boolean;
}
const defaultRecordingPrefs: RecordingPrefs = {
micEnabled: false,
@@ -632,7 +630,6 @@ const defaultRecordingPrefs: RecordingPrefs = {
camDeviceId: null,
systemAudioEnabled: false,
cursorCaptureMode: "editable-overlay",
- autoZoomEnabled: true,
};
// Cached source from the user's pick. Used by setDisplayMediaRequestHandler in main.ts for cursor-free capture.
diff --git a/electron/ipc/recordingPrefs.test.ts b/electron/ipc/recordingPrefs.test.ts
index 115a3c356..aaa08b190 100644
--- a/electron/ipc/recordingPrefs.test.ts
+++ b/electron/ipc/recordingPrefs.test.ts
@@ -1,14 +1,10 @@
-import { mkdtempSync, readFileSync, rmSync } from "node:fs";
-import os from "node:os";
-import path from "node:path";
import type { BrowserWindow } from "electron";
-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { beforeEach, describe, expect, it, vi } from "vitest";
import type { RecordingPrefs } from "./handlers";
import { registerRecordingPrefsHandlers } from "./recordingPrefs";
-const electron = vi.hoisted(() => ({ getPath: vi.fn(), handle: vi.fn() }));
+const electron = vi.hoisted(() => ({ handle: vi.fn() }));
vi.mock("electron", () => ({
- app: { getPath: electron.getPath },
ipcMain: { handle: electron.handle },
}));
@@ -20,15 +16,11 @@ const defaults: RecordingPrefs = {
camDeviceId: null,
systemAudioEnabled: false,
cursorCaptureMode: "editable-overlay",
- autoZoomEnabled: true,
};
-let dir: string;
+
beforeEach(() => {
- dir = mkdtempSync(path.join(os.tmpdir(), "openscreen-recording-ipc-"));
- electron.getPath.mockReturnValue(dir);
electron.handle.mockClear();
});
-afterEach(() => rmSync(dir, { recursive: true, force: true }));
function start(getWindow: () => BrowserWindow | null = () => null) {
electron.handle.mockClear();
@@ -44,42 +36,24 @@ function start(getWindow: () => BrowserWindow | null = () => null) {
}
describe("recording preferences IPC", () => {
- it("restores false on restart while device preferences reset", () => {
- const first = start();
- expect(first.get().autoZoomEnabled).toBe(true);
- expect(first.set({ autoZoomEnabled: false }).autoZoomEnabled).toBe(false);
- first.set({ micEnabled: true, micDeviceId: "temporary-device" });
- const disk = JSON.parse(readFileSync(path.join(dir, "recording-settings.json"), "utf8"));
- expect(disk).toEqual({ autoZoomEnabled: false });
- const restarted = start();
- expect(restarted.get()).toEqual({ ...defaults, autoZoomEnabled: false });
- restarted.set({ autoZoomEnabled: true });
- expect(start().get().autoZoomEnabled).toBe(true);
+ it("returns defaults and updates session preferences", () => {
+ const session = start();
+ expect(session.get()).toEqual(defaults);
+ const updated = session.set({ micEnabled: true, micDeviceId: "test-mic" });
+ expect(updated.micEnabled).toBe(true);
+ expect(updated.micDeviceId).toBe("test-mic");
+ expect(session.get().micEnabled).toBe(true);
});
- it("broadcasts the saved value and tolerates an absent or destroyed window", () => {
+ it("broadcasts changes to main window and tolerates an absent or destroyed window", () => {
const send = vi.fn();
const isDestroyed = vi.fn(() => false);
const window = { isDestroyed, webContents: { send } } as unknown as BrowserWindow;
const session = start(() => window);
- const updated = session.set({ autoZoomEnabled: false });
+ const updated = session.set({ camEnabled: true });
expect(send).toHaveBeenCalledWith("recording-prefs-changed", updated);
isDestroyed.mockReturnValue(true);
session.set({ micEnabled: true });
expect(send).toHaveBeenCalledTimes(1);
});
-
- it("does not publish an invalid or failed preference write", () => {
- const session = start();
- expect(() =>
- session.set({ autoZoomEnabled: null } as unknown as Partial<RecordingPrefs>),
- ).toThrow(TypeError);
- expect(session.get().autoZoomEnabled).toBe(true);
- session.set({ autoZoomEnabled: false });
- session.set({ autoZoomEnabled: undefined, camEnabled: true });
- expect(session.get().autoZoomEnabled).toBe(false);
- rmSync(dir, { recursive: true, force: true });
- expect(() => session.set({ autoZoomEnabled: true })).toThrow();
- expect(session.get().autoZoomEnabled).toBe(false);
- });
});
diff --git a/electron/ipc/recordingPrefs.ts b/electron/ipc/recordingPrefs.ts
index edeb8b919..65516201d 100644
--- a/electron/ipc/recordingPrefs.ts
+++ b/electron/ipc/recordingPrefs.ts
@@ -1,25 +1,19 @@
-import { app, type BrowserWindow, ipcMain } from "electron";
-import { loadAutoZoomEnabled, saveAutoZoomEnabled } from "../recording-settings";
+import type { BrowserWindow } from "electron";
+import { ipcMain } from "electron";
import type { RecordingPrefs } from "./handlers";
-/** Shared session preferences, with only the auto-zoom choice retained on disk. */
+/** Shared session preferences. */
export function registerRecordingPrefsHandlers(
defaults: RecordingPrefs,
getMainWindow: () => BrowserWindow | null,
): void {
- const userData = app.getPath("userData");
- let recordingPrefs = { ...defaults, autoZoomEnabled: loadAutoZoomEnabled(userData) };
+ let recordingPrefs = { ...defaults };
ipcMain.handle("get-recording-prefs", () => recordingPrefs);
ipcMain.handle("set-recording-prefs", (_, prefs: Partial<RecordingPrefs>) => {
- if (prefs.autoZoomEnabled !== undefined) {
- // Persist before publishing: a failed save must not report a durable change.
- saveAutoZoomEnabled(userData, prefs.autoZoomEnabled);
- }
recordingPrefs = {
...recordingPrefs,
...prefs,
- autoZoomEnabled: prefs.autoZoomEnabled ?? recordingPrefs.autoZoomEnabled,
};
const mainWin = getMainWindow();
if (mainWin && !mainWin.isDestroyed()) {
diff --git a/electron/recording-settings.test.ts b/electron/recording-settings.test.ts
deleted file mode 100644
index 49a1202f1..000000000
--- a/electron/recording-settings.test.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-import { spawnSync } from "node:child_process";
-import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
-import os from "node:os";
-import path from "node:path";
-import { pathToFileURL } from "node:url";
-import { afterEach, describe, expect, it } from "vitest";
-import { loadAutoZoomEnabled, saveAutoZoomEnabled } from "./recording-settings";
-
-const temps: string[] = [];
-const tmp = () => {
- const dir = mkdtempSync(path.join(os.tmpdir(), "openscreen-recording-settings-"));
- temps.push(dir);
- return dir;
-};
-afterEach(() => {
- for (const dir of temps.splice(0)) rmSync(dir, { recursive: true, force: true });
-});
-
-describe("recording settings", () => {
- it("defaults to on for absent, malformed, and invalid settings", () => {
- const dir = tmp();
- expect(loadAutoZoomEnabled(dir)).toBe(true);
- for (const raw of ["{broken", "null", "[]", "42", "{}", '{"autoZoomEnabled":"false"}']) {
- writeFileSync(path.join(dir, "recording-settings.json"), raw);
- expect(loadAutoZoomEnabled(dir)).toBe(true);
- }
- });
-
- it("round-trips false and true without overwriting unrelated keys", () => {
- const dir = tmp();
- const file = path.join(dir, "recording-settings.json");
- writeFileSync(file, '{"futurePreference":"keep"}');
- for (const enabled of [false, true]) {
- saveAutoZoomEnabled(dir, enabled);
- expect(loadAutoZoomEnabled(dir)).toBe(enabled);
- expect(JSON.parse(readFileSync(file, "utf8"))).toEqual({
- futurePreference: "keep",
- autoZoomEnabled: enabled,
- });
- }
- });
-
- it("loads the disabled preference in a separate Node process", () => {
- const dir = tmp();
- saveAutoZoomEnabled(dir, false);
- const moduleUrl = pathToFileURL(path.resolve("electron/recording-settings.ts")).href;
- const result = spawnSync(
- process.execPath,
- [
- "--experimental-strip-types",
- "--input-type=module",
- "-e",
- `import { loadAutoZoomEnabled } from ${JSON.stringify(moduleUrl)}; process.stdout.write(JSON.stringify(loadAutoZoomEnabled(process.argv[1])));`,
- dir,
- ],
- { encoding: "utf8" },
- );
- expect(result.error).toBeUndefined();
- expect(result.status, result.stderr).toBe(0);
- expect(result.stdout).toBe("false");
- });
-
- it("rejects invalid writes and reports a failed disk write", () => {
- const dir = tmp();
- saveAutoZoomEnabled(dir, false);
- expect(() => saveAutoZoomEnabled(dir, "false" as unknown as boolean)).toThrow(TypeError);
- expect(loadAutoZoomEnabled(dir)).toBe(false);
- expect(() => saveAutoZoomEnabled(path.join(dir, "missing"), true)).toThrow();
- });
-});
diff --git a/electron/recording-settings.ts b/electron/recording-settings.ts
deleted file mode 100644
index 25370cdab..000000000
--- a/electron/recording-settings.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
-import path from "node:path";
-
-function readSettings(userData: string): Record<string, unknown> {
- try {
- const value: unknown = JSON.parse(
- readFileSync(path.join(userData, "recording-settings.json"), "utf8"),
- );
- return value !== null && typeof value === "object" && !Array.isArray(value)
- ? (value as Record<string, unknown>)
- : {};
- } catch {
- return {};
- }
-}
-
-/** Default on for new users; a saved false must survive an app restart. */
-export function loadAutoZoomEnabled(userData: string): boolean {
- const value = readSettings(userData).autoZoomEnabled;
- return typeof value === "boolean" ? value : true;
-}
-
-/** Save only this durable preference; device selection remains session-only. */
-export function saveAutoZoomEnabled(userData: string, enabled: boolean): void {
- if (typeof enabled !== "boolean") throw new TypeError("autoZoomEnabled must be a boolean");
- const destination = path.join(userData, "recording-settings.json");
- const temporary = `${destination}.${process.pid}.tmp`;
- try {
- writeFileSync(
- temporary,
- `${JSON.stringify({ ...readSettings(userData), autoZoomEnabled: enabled })}\n`,
- "utf8",
- );
- renameSync(temporary, destination);
- } finally {
- rmSync(temporary, { force: true });
- }
-}
diff --git a/src/components/ai-edition/recordingImport.test.ts b/src/components/ai-edition/recordingImport.test.ts
index 9bc7c5557..22ef90a7f 100644
--- a/src/components/ai-edition/recordingImport.test.ts
+++ b/src/components/ai-edition/recordingImport.test.ts
@@ -338,7 +338,6 @@ describe("fresh-recording auto-zoom", () => {
it("applies cursor-dwell zooms once, after duration is known", async () => {
markFreshRecordingAutoZoomPending(RECORDING_PATH);
const next = await applyPendingFreshRecordingAutoZooms(documentWithClip(), {
- enabled: true,
getTelemetry: async () => dwell(4000, 0.4, 0.6),
createId: (prefix) => `${prefix}_test`,
});
@@ -348,18 +347,17 @@ describe("fresh-recording auto-zoom", () => {
endMs: 5000,
focusMode: "auto",
});
- expect(await applyPendingFreshRecordingAutoZooms(next, { enabled: true })).toBe(next);
+ expect(await applyPendingFreshRecordingAutoZooms(next)).toBe(next);
});
- it("skips when the HUD toggle is off", async () => {
+ it("applies cursor-dwell zooms by default without requiring an enabled flag", async () => {
markFreshRecordingAutoZoomPending(RECORDING_PATH);
const document = documentWithClip();
const next = await applyPendingFreshRecordingAutoZooms(document, {
- enabled: false,
getTelemetry: async () => dwell(4000, 0.5, 0.5),
+ createId: (prefix) => `${prefix}_test`,
});
- expect(next).toBe(document);
- expect(next.zoomRanges).toEqual([]);
+ expect(next.zoomRanges).toHaveLength(1);
});
// The stop handler awaits `writePendingCursorTelemetry` before it publishes the
diff --git a/src/components/ai-edition/recordingImport.ts b/src/components/ai-edition/recordingImport.ts
index 39b0923bd..5200e560e 100644
--- a/src/components/ai-edition/recordingImport.ts
+++ b/src/components/ai-edition/recordingImport.ts
@@ -77,15 +77,6 @@ export type ApplyFreshRecordingAutoZoomsDeps = {
waitTimeoutMs?: number;
};
-async function readAutoZoomPref(): Promise<boolean> {
- try {
- const prefs = await window.electronAPI?.getRecordingPrefs?.();
- return prefs?.autoZoomEnabled !== false;
- } catch {
- return true;
- }
-}
-
function isPendingFreshRecordingAsset(asset: { originalPath?: string | null }): boolean {
return asset.originalPath === pendingFreshRecordingAutoZoomPath;
}
@@ -152,7 +143,7 @@ export async function applyPendingFreshRecordingAutoZooms(
clearFreshRecordingAutoZoomPending();
return document;
}
- const enabled = deps.enabled ?? (await readAutoZoomPref());
+ const enabled = deps.enabled ?? true;
if (!enabled) {
clearFreshRecordingAutoZoomPending();
return liveDocument(document);
diff --git a/src/components/ai-edition/v4/RecStage.test.tsx b/src/components/ai-edition/v4/RecStage.test.tsx
index ac98dbe3e..f2b0f0146 100644
--- a/src/components/ai-edition/v4/RecStage.test.tsx
+++ b/src/components/ai-edition/v4/RecStage.test.tsx
@@ -1,6 +1,6 @@
// @vitest-environment jsdom
import "@testing-library/jest-dom";
-import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { cleanup, render, screen, waitFor } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { RecStage } from "./RecStage";
@@ -56,7 +56,7 @@ function renderRecStage() {
return { onStartRecording };
}
-describe("RecStage auto-zoom", () => {
+describe("RecStage controls", () => {
beforeEach(() => {
vi.clearAllMocks();
});
@@ -66,7 +66,7 @@ describe("RecStage auto-zoom", () => {
(window as unknown as { electronAPI?: unknown }).electronAPI = undefined;
});
- it("defaults on when a legacy prefs blob has no autoZoomEnabled key", async () => {
+ it("does not render an auto-zoom toggle button (auto-zoom is systematic)", async () => {
const { getRecordingPrefs } = stubRecordingPrefs({
micEnabled: false,
cursorCaptureMode: "editable-overlay",
@@ -75,39 +75,6 @@ describe("RecStage auto-zoom", () => {
await waitFor(() => {
expect(getRecordingPrefs).toHaveBeenCalled();
});
- const button = await screen.findByTestId("rec-auto-zoom-button");
- expect(button).toHaveAttribute("aria-pressed", "true");
- expect(button).toHaveTextContent("rec.on");
- expect(button).toBeEnabled();
- });
-
- it("writes autoZoomEnabled through setRecordingPrefs on click", async () => {
- const { setRecordingPrefs } = stubRecordingPrefs({
- cursorCaptureMode: "editable-overlay",
- autoZoomEnabled: true,
- });
- renderRecStage();
- const button = await screen.findByTestId("rec-auto-zoom-button");
- await waitFor(() => {
- expect(button).toBeEnabled();
- });
- fireEvent.click(button);
- expect(setRecordingPrefs).toHaveBeenCalledWith({ autoZoomEnabled: false });
- });
-
- it("disables auto-zoom while Rec-stage cursor capture is system", async () => {
- const { setRecordingPrefs } = stubRecordingPrefs({
- cursorCaptureMode: "system",
- autoZoomEnabled: true,
- });
- renderRecStage();
- const button = await screen.findByTestId("rec-auto-zoom-button");
- await waitFor(() => {
- expect(button).toBeDisabled();
- });
- expect(button).toHaveAttribute("title", "rec.autoZoomNeedsEditableCursor");
- expect(button).toHaveAttribute("aria-pressed", "false");
- fireEvent.click(button);
- expect(setRecordingPrefs).not.toHaveBeenCalled();
+ expect(screen.queryByTestId("rec-auto-zoom-button")).toBeNull();
});
});
diff --git a/src/components/ai-edition/v4/RecStage.tsx b/src/components/ai-edition/v4/RecStage.tsx
index cc8585ece..23a39d0db 100644
--- a/src/components/ai-edition/v4/RecStage.tsx
+++ b/src/components/ai-edition/v4/RecStage.tsx
@@ -9,7 +9,6 @@ import {
MousePointer2,
Volume2,
VolumeX,
- ZoomIn,
} from "lucide-react";
import { useEffect, useRef, useState } from "react";
import { AudioLevelMeter } from "@/components/ui/audio-level-meter";
@@ -29,7 +28,6 @@ interface RecordingPrefsState {
camDeviceId: string | null;
systemAudioEnabled: boolean;
cursorCaptureMode: "editable-overlay" | "system";
- autoZoomEnabled: boolean;
}
const DEFAULT_PREFS: RecordingPrefsState = {
@@ -40,7 +38,6 @@ const DEFAULT_PREFS: RecordingPrefsState = {
camDeviceId: null,
systemAudioEnabled: false,
cursorCaptureMode: "editable-overlay",
- autoZoomEnabled: true,
};
/**
@@ -74,7 +71,6 @@ export function RecStage({
setPrefsState({
...DEFAULT_PREFS,
...p,
- autoZoomEnabled: p.autoZoomEnabled !== false,
} as RecordingPrefsState);
}
})
@@ -379,27 +375,6 @@ export function RecStage({
{cursorHighlight ? t("rec.on") : t("rec.off")}
</button>
</div>
-
- <div className={styles.recRow}>
- <div className={styles.recRowLabel}>
- <ZoomIn size={15} />
- {t("rec.autoZoom")}
- </div>
- <button
- type="button"
- data-testid="rec-auto-zoom-button"
- className={`${styles.recToggleBtn}${prefs.autoZoomEnabled !== false && cursorHighlight ? ` ${styles.on}` : ""}`}
- aria-pressed={prefs.autoZoomEnabled !== false && cursorHighlight}
- disabled={!cursorHighlight}
- title={cursorHighlight ? undefined : t("rec.autoZoomNeedsEditableCursor")}
- onClick={() => {
- if (!cursorHighlight) return;
- updatePrefs({ autoZoomEnabled: prefs.autoZoomEnabled === false });
- }}
- >
- {prefs.autoZoomEnabled !== false && cursorHighlight ? t("rec.on") : t("rec.off")}
- </button>
- </div>
</div>
</div>
diff --git a/src/components/launch/HudControls.tsx b/src/components/launch/HudControls.tsx
index 72547f29c..360499c79 100644
--- a/src/components/launch/HudControls.tsx
+++ b/src/components/launch/HudControls.tsx
@@ -4,7 +4,6 @@ import { formatTimePadded } from "../../utils/timeUtils";
import { Button } from "../ui/button";
import { Tooltip } from "../ui/tooltip";
import {
- AutoZoomIcon,
CameraIcon,
CursorIcon,
getIcon,
@@ -254,35 +253,6 @@ export const HudSettingsButton = memo(function HudSettingsButton({
);
});
-export const HudAutoZoomButton = memo(function HudAutoZoomButton({
- enabled,
- disabled,
- label,
- onClick,
-}: {
- enabled: boolean;
- disabled: boolean;
- label: string;
- onClick: () => void;
-}) {
- return (
- <button
- data-testid="launch-auto-zoom-button"
- className={`flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[10px] border-0 cursor-pointer transition-all duration-150 active:scale-95 ${hudDisabledClasses} ${styles.electronNoDrag} ${
- enabled
- ? "bg-[#10b981] text-[#08090d] hover:bg-[#0e9e6e]"
- : "bg-transparent text-[#828c99] hover:bg-[#1a1e25] hover:text-[#f5f7fa]"
- }`}
- aria-pressed={enabled}
- onClick={onClick}
- disabled={disabled}
- title={label}
- >
- <AutoZoomIcon />
- </button>
- );
-});
-
export const HudCursorButton = memo(function HudCursorButton({
editableOverlay,
disabled,
diff --git a/src/components/launch/HudIcons.tsx b/src/components/launch/HudIcons.tsx
index f8e527abb..0ec73bdff 100644
--- a/src/components/launch/HudIcons.tsx
+++ b/src/components/launch/HudIcons.tsx
@@ -117,16 +117,6 @@ export function CameraIcon({ off, className }: { off: boolean; className?: strin
);
}
-export function AutoZoomIcon({ className }: { className?: string }) {
- return (
- <svg {...HUD_SVG_PROPS} className={className} aria-hidden="true">
- <circle cx="10.5" cy="10.5" r="5.5" />
- <path d="M14.5 14.5 20 20" />
- <path d="M10.5 8v5M8 10.5h5" />
- </svg>
- );
-}
-
export function CursorIcon({ className }: { className?: string }) {
return (
<svg
diff --git a/src/components/launch/LaunchWindow.test.tsx b/src/components/launch/LaunchWindow.test.tsx
index 0632d524d..55ff1266b 100644
--- a/src/components/launch/LaunchWindow.test.tsx
+++ b/src/components/launch/LaunchWindow.test.tsx
@@ -61,8 +61,6 @@ const recorderState = vi.hoisted(() => ({
setSystemAudioEnabled: vi.fn(),
cursorCaptureMode: "editable-overlay",
setCursorCaptureMode: vi.fn(),
- autoZoomEnabled: true,
- setAutoZoomEnabled: vi.fn(),
softwareEncoderFallbackNoticeVisible: false,
dismissSoftwareEncoderFallbackNotice: vi.fn(),
},
@@ -175,10 +173,6 @@ vi.mock("@/contexts/I18nContext", () => ({
"webcam.cameraDevice": "Camera device",
"cursor.useEditableCursor": "Use editable cursor",
"cursor.useSystemCursor": "Use system cursor",
- "autoZoom.enable": "Enable auto-zoom after recording",
- "autoZoom.disable": "Disable auto-zoom after recording",
- "autoZoom.needsEditableCursor":
- "Auto-zoom needs the editable cursor. Switch cursor mode to enable.",
"tooltips.openStudio": "Open Studio",
"tooltips.hideHUD": "Hide HUD",
"tooltips.closeApp": "Close App",
@@ -297,8 +291,6 @@ function resetLaunchMocks() {
vi.stubGlobal("ResizeObserver", StubResizeObserver);
recorderState.value.toggleRecording.mockClear();
recorderState.value.cursorCaptureMode = "editable-overlay";
- recorderState.value.autoZoomEnabled = true;
- recorderState.value.setAutoZoomEnabled.mockClear();
recorderState.value.setCursorCaptureMode.mockClear();
recorderState.value.softwareEncoderFallbackNoticeVisible = false;
recorderState.value.dismissSoftwareEncoderFallbackNotice.mockClear();
@@ -354,61 +346,9 @@ describe("LaunchWindow record button", () => {
expect(recorderState.value.toggleRecording).not.toHaveBeenCalled();
});
- // The button says "on" with a colour fill and nothing else, so a screen reader
- // gets no toggle state at all — the same `aria-pressed` the mic and camera
- // buttons beside it already carry.
- it("reports the auto-zoom toggle state", () => {
+ it("does not render an auto-zoom toggle button (auto-zoom is systematic)", () => {
renderLaunchWindow();
-
- expect(screen.getByTestId("launch-auto-zoom-button")).toHaveAttribute("aria-pressed", "true");
-
- cleanup();
- recorderState.value.autoZoomEnabled = false;
- renderLaunchWindow();
-
- expect(screen.getByTestId("launch-auto-zoom-button")).toHaveAttribute("aria-pressed", "false");
- });
-
- it("toggles post-record auto-zoom without touching cursor capture", () => {
- renderLaunchWindow();
-
- const button = screen.getByTestId("launch-auto-zoom-button");
- expect(button).toHaveAttribute("title", "Disable auto-zoom after recording");
- fireEvent.click(button);
-
- expect(recorderState.value.setAutoZoomEnabled).toHaveBeenCalledWith(false);
- expect(window.electronAPI.setRecordingPrefs).toHaveBeenCalledWith({ autoZoomEnabled: false });
- expect(recorderState.value.setCursorCaptureMode).not.toHaveBeenCalled();
- });
-
- it("disables auto-zoom while the HUD is in system-cursor mode", async () => {
- recorderState.value.cursorCaptureMode = "system";
- renderLaunchWindow();
-
- const button = await waitFor(() => {
- const el = screen.getByTestId("launch-auto-zoom-button");
- expect(el).toBeDisabled();
- return el;
- });
- expect(button).toHaveAttribute(
- "title",
- "Auto-zoom needs the editable cursor. Switch cursor mode to enable.",
- );
- fireEvent.click(button);
- expect(recorderState.value.setAutoZoomEnabled).not.toHaveBeenCalled();
- });
-
- it("disables auto-zoom in system-cursor mode before platform detection finishes", () => {
- vi.mocked(nativeBridgeClient.system.getPlatform).mockImplementation(
- () => new Promise(() => undefined),
- );
- recorderState.value.cursorCaptureMode = "system";
- renderLaunchWindow();
-
- const button = screen.getByTestId("launch-auto-zoom-button");
- expect(button).toBeDisabled();
- fireEvent.click(button);
- expect(recorderState.value.setAutoZoomEnabled).not.toHaveBeenCalled();
+ expect(screen.queryByTestId("launch-auto-zoom-button")).toBeNull();
});
it("records immediately after source selection when the record button opened the picker", async () => {
diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx
index 9929df5d2..b722a195c 100644
--- a/src/components/launch/LaunchWindow.tsx
+++ b/src/components/launch/LaunchWindow.tsx
@@ -9,7 +9,6 @@ import { usePortalOwnsSource } from "../../hooks/usePortalOwnsSource";
import { useScreenRecorder } from "../../hooks/useScreenRecorder";
import { requestCameraAccess } from "../../lib/requestCameraAccess";
import {
- HudAutoZoomButton,
HudCameraButton,
HudCursorButton,
HudDivider,
@@ -106,8 +105,6 @@ export function LaunchWindow() {
setWebcamDeviceName,
cursorCaptureMode,
setCursorCaptureMode,
- autoZoomEnabled,
- setAutoZoomEnabled,
softwareEncoderFallbackNoticeVisible,
dismissSoftwareEncoderFallbackNotice,
} = useScreenRecorder();
@@ -765,7 +762,6 @@ export function LaunchWindow() {
camDeviceId?: string;
micDeviceId?: string;
micDeviceName?: string;
- autoZoomEnabled?: boolean;
}) => {
void window.electronAPI?.setRecordingPrefs?.(patch).catch((error) => {
console.warn("Failed to persist the device preference:", error);
@@ -774,21 +770,6 @@ export function LaunchWindow() {
[],
);
- const systemCursorLocksAutoZoom = cursorCaptureMode === "system";
- const toggleAutoZoom = useCallback(() => {
- if (controlsLocked) return;
- if (systemCursorLocksAutoZoom) return;
- const next = !autoZoomEnabled;
- setAutoZoomEnabled(next);
- persistRecordingPrefs({ autoZoomEnabled: next });
- }, [
- autoZoomEnabled,
- controlsLocked,
- persistRecordingPrefs,
- setAutoZoomEnabled,
- systemCursorLocksAutoZoom,
- ]);
-
const toggleWebcam = useCallback(() => {
if (controlsLocked) return;
const next = !webcamEnabled;
@@ -1070,18 +1051,6 @@ export function LaunchWindow() {
onClick={toggleDeviceSettings}
/>
</div>
- <HudAutoZoomButton
- enabled={autoZoomEnabled && !systemCursorLocksAutoZoom}
- disabled={controlsLocked || systemCursorLocksAutoZoom}
- label={
- systemCursorLocksAutoZoom
- ? t("autoZoom.needsEditableCursor")
- : autoZoomEnabled
- ? t("autoZoom.disable")
- : t("autoZoom.enable")
- }
- onClick={toggleAutoZoom}
- />
{supportsCursorModeToggle && (
<HudCursorButton
editableOverlay={cursorCaptureMode === "editable-overlay"}
diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.ts
index 8960548b2..13c010883 100644
--- a/src/hooks/useScreenRecorder.ts
+++ b/src/hooks/useScreenRecorder.ts
@@ -106,8 +106,6 @@ type UseScreenRecorderReturn = {
setWebcamEnabled: (enabled: boolean) => Promise<boolean>;
cursorCaptureMode: CursorCaptureMode;
setCursorCaptureMode: (mode: CursorCaptureMode) => void;
- autoZoomEnabled: boolean;
- setAutoZoomEnabled: (enabled: boolean) => void;
softwareEncoderFallbackNoticeVisible: boolean;
dismissSoftwareEncoderFallbackNotice: (dontShowAgain?: boolean) => void;
};
@@ -244,7 +242,6 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
const [systemAudioEnabled, setSystemAudioEnabled] = useState(false);
const [webcamEnabled, setWebcamEnabledState] = useState(false);
const [cursorCaptureMode, setCursorCaptureMode] = useState<CursorCaptureMode>("editable-overlay");
- const [autoZoomEnabled, setAutoZoomEnabled] = useState(true);
const [softwareEncoderFallbackNoticeVisible, setSoftwareEncoderFallbackNoticeVisible] =
useState(false);
@@ -270,7 +267,6 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
if (prefs.camDeviceId) setWebcamDeviceId(prefs.camDeviceId);
setSystemAudioEnabled(prefs.systemAudioEnabled);
setCursorCaptureMode(prefs.cursorCaptureMode);
- setAutoZoomEnabled(prefs.autoZoomEnabled !== false);
})
.catch((err) => {
// Bare ipcRenderer.invoke — rejects if the main handler throws. Falling
@@ -2354,8 +2350,6 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
setWebcamEnabled,
cursorCaptureMode,
setCursorCaptureMode,
- autoZoomEnabled,
- setAutoZoomEnabled,
softwareEncoderFallbackNoticeVisible,
dismissSoftwareEncoderFallbackNotice,
};
diff --git a/src/i18n/locales/ar/editor.json b/src/i18n/locales/ar/editor.json
index 3768c7f64..dcef44624 100644
--- a/src/i18n/locales/ar/editor.json
+++ b/src/i18n/locales/ar/editor.json
@@ -110,8 +110,6 @@
"microphone": "الميكروفون",
"camera": "الكاميرا",
"cursorHighlight": "إبراز المؤشر",
- "autoZoom": "تكبير تلقائي بعد التسجيل",
- "autoZoomNeedsEditableCursor": "التكبير التلقائي يحتاج إلى المؤشر القابل للتحرير. بدّل وضع المؤشر للتفعيل.",
"on": "تشغيل",
"off": "إيقاف",
"loading": "جارٍ التحميل...",
diff --git a/src/i18n/locales/ar/launch.json b/src/i18n/locales/ar/launch.json
index d632953b3..0198af382 100644
--- a/src/i18n/locales/ar/launch.json
+++ b/src/i18n/locales/ar/launch.json
@@ -78,11 +78,6 @@
"useEditableCursor": "استخدام مؤشر قابل للتحرير",
"useSystemCursor": "استخدام مؤشر النظام"
},
- "autoZoom": {
- "enable": "تفعيل التكبير التلقائي بعد التسجيل",
- "disable": "تعطيل التكبير التلقائي بعد التسجيل",
- "needsEditableCursor": "التكبير التلقائي يحتاج إلى المؤشر القابل للتحرير. بدّل وضع المؤشر للتفعيل."
- },
"softwareEncoderFallback": {
"title": "تم التبديل إلى الترميز البرمجي",
"description": "تعذّر تشغيل مرمّز GPU الافتراضي، لذا تحوّل OpenScreen إلى ترميز H.264 البرمجي. سيستمر التسجيل كالمعتاد، لكن استخدام المعالج قد يكون أعلى.",
diff --git a/src/i18n/locales/en/editor.json b/src/i18n/locales/en/editor.json
index dfd04c420..a75b70055 100644
--- a/src/i18n/locales/en/editor.json
+++ b/src/i18n/locales/en/editor.json
@@ -110,8 +110,6 @@
"microphone": "Microphone",
"camera": "Camera",
"cursorHighlight": "Cursor highlight",
- "autoZoom": "Auto-zoom after recording",
- "autoZoomNeedsEditableCursor": "Auto-zoom needs the editable cursor. Switch cursor mode to enable.",
"on": "On",
"off": "Off",
"loading": "Loading…",
diff --git a/src/i18n/locales/en/launch.json b/src/i18n/locales/en/launch.json
index 3c60aad22..ad2385c02 100644
--- a/src/i18n/locales/en/launch.json
+++ b/src/i18n/locales/en/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "Use editable cursor",
"useSystemCursor": "Use system cursor"
},
- "autoZoom": {
- "enable": "Enable auto-zoom after recording",
- "disable": "Disable auto-zoom after recording",
- "needsEditableCursor": "Auto-zoom needs the editable cursor. Switch cursor mode to enable."
- },
"sourceSelector": {
"loading": "Loading sources...",
"screens": "Screens ({{count}})",
diff --git a/src/i18n/locales/es/editor.json b/src/i18n/locales/es/editor.json
index bfc420d58..9487e6b70 100644
--- a/src/i18n/locales/es/editor.json
+++ b/src/i18n/locales/es/editor.json
@@ -110,8 +110,6 @@
"microphone": "Micrófono",
"camera": "Cámara",
"cursorHighlight": "Resaltar cursor",
- "autoZoom": "Zoom automático tras grabar",
- "autoZoomNeedsEditableCursor": "El zoom automático necesita el cursor editable. Cambia el modo del cursor para activarlo.",
"on": "Activado",
"off": "Desactivado",
"loading": "Cargando…",
diff --git a/src/i18n/locales/es/launch.json b/src/i18n/locales/es/launch.json
index 7fe44a485..7a2c92a55 100644
--- a/src/i18n/locales/es/launch.json
+++ b/src/i18n/locales/es/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "Usar cursor editable",
"useSystemCursor": "Usar cursor del sistema"
},
- "autoZoom": {
- "enable": "Activar zoom automático tras grabar",
- "disable": "Desactivar zoom automático tras grabar",
- "needsEditableCursor": "El zoom automático necesita el cursor editable. Cambia el modo del cursor para activarlo."
- },
"sourceSelector": {
"loading": "Cargando fuentes...",
"screens": "Pantallas ({{count}})",
diff --git a/src/i18n/locales/fr/editor.json b/src/i18n/locales/fr/editor.json
index 16787be61..cf0de68ee 100644
--- a/src/i18n/locales/fr/editor.json
+++ b/src/i18n/locales/fr/editor.json
@@ -110,8 +110,6 @@
"microphone": "Microphone",
"camera": "Caméra",
"cursorHighlight": "Curseur en surbrillance",
- "autoZoom": "Zoom automatique après l'enregistrement",
- "autoZoomNeedsEditableCursor": "Le zoom automatique nécessite le curseur modifiable. Changez le mode du curseur pour l'activer.",
"on": "Activé",
"off": "Désactivé",
"loading": "Chargement…",
diff --git a/src/i18n/locales/fr/launch.json b/src/i18n/locales/fr/launch.json
index a1819e350..858fd58f1 100644
--- a/src/i18n/locales/fr/launch.json
+++ b/src/i18n/locales/fr/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "Utiliser le curseur éditable",
"useSystemCursor": "Utiliser le curseur système"
},
- "autoZoom": {
- "enable": "Activer le zoom automatique après l'enregistrement",
- "disable": "Désactiver le zoom automatique après l'enregistrement",
- "needsEditableCursor": "Le zoom automatique nécessite le curseur modifiable. Changez le mode du curseur pour l'activer."
- },
"sourceSelector": {
"loading": "Chargement des sources...",
"screens": "Écrans ({{count}})",
diff --git a/src/i18n/locales/it/editor.json b/src/i18n/locales/it/editor.json
index 288e2dc91..9f3b35aa4 100644
--- a/src/i18n/locales/it/editor.json
+++ b/src/i18n/locales/it/editor.json
@@ -110,8 +110,6 @@
"microphone": "Microfono",
"camera": "Fotocamera",
"cursorHighlight": "Evidenzia cursore",
- "autoZoom": "Zoom automatico dopo la registrazione",
- "autoZoomNeedsEditableCursor": "Lo zoom automatico richiede il cursore modificabile. Cambia la modalità del cursore per attivarlo.",
"on": "Attivo",
"off": "Disattivo",
"loading": "Caricamento…",
diff --git a/src/i18n/locales/it/launch.json b/src/i18n/locales/it/launch.json
index e4adbc465..ed5088d67 100644
--- a/src/i18n/locales/it/launch.json
+++ b/src/i18n/locales/it/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "Usa cursore modificabile",
"useSystemCursor": "Usa cursore di sistema"
},
- "autoZoom": {
- "enable": "Attiva lo zoom automatico dopo la registrazione",
- "disable": "Disattiva lo zoom automatico dopo la registrazione",
- "needsEditableCursor": "Lo zoom automatico richiede il cursore modificabile. Cambia la modalità del cursore per attivarlo."
- },
"sourceSelector": {
"loading": "Caricamento sorgenti...",
"screens": "Schermi ({{count}})",
diff --git a/src/i18n/locales/ja-JP/editor.json b/src/i18n/locales/ja-JP/editor.json
index 3b9da716b..ca82e702f 100644
--- a/src/i18n/locales/ja-JP/editor.json
+++ b/src/i18n/locales/ja-JP/editor.json
@@ -110,8 +110,6 @@
"microphone": "マイク",
"camera": "カメラ",
"cursorHighlight": "カーソルの強調表示",
- "autoZoom": "録画後に自動ズーム",
- "autoZoomNeedsEditableCursor": "自動ズームには編集可能なカーソルが必要です。カーソルモードを切り替えてください。",
"on": "オン",
"off": "オフ",
"loading": "読み込み中…",
diff --git a/src/i18n/locales/ja-JP/launch.json b/src/i18n/locales/ja-JP/launch.json
index bf940cc04..ab9cebbd5 100644
--- a/src/i18n/locales/ja-JP/launch.json
+++ b/src/i18n/locales/ja-JP/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "編集可能なカーソルを使う",
"useSystemCursor": "システムカーソルを使う"
},
- "autoZoom": {
- "enable": "録画後の自動ズームをオンにする",
- "disable": "録画後の自動ズームをオフにする",
- "needsEditableCursor": "自動ズームには編集可能なカーソルが必要です。カーソルモードを切り替えてください。"
- },
"sourceSelector": {
"loading": "ソースを読み込み中...",
"screens": "画面 ({{count}})",
diff --git a/src/i18n/locales/ko-KR/editor.json b/src/i18n/locales/ko-KR/editor.json
index 746cf6349..d65edaa60 100644
--- a/src/i18n/locales/ko-KR/editor.json
+++ b/src/i18n/locales/ko-KR/editor.json
@@ -110,8 +110,6 @@
"microphone": "마이크",
"camera": "카메라",
"cursorHighlight": "커서 강조",
- "autoZoom": "녹화 후 자동 확대",
- "autoZoomNeedsEditableCursor": "자동 확대는 편집 가능한 커서가 필요합니다. 커서 모드를 전환하세요.",
"on": "켜짐",
"off": "꺼짐",
"loading": "로딩 중…",
diff --git a/src/i18n/locales/ko-KR/launch.json b/src/i18n/locales/ko-KR/launch.json
index 6e13f7ba5..192089224 100644
--- a/src/i18n/locales/ko-KR/launch.json
+++ b/src/i18n/locales/ko-KR/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "편집 가능한 커서 사용",
"useSystemCursor": "시스템 커서 사용"
},
- "autoZoom": {
- "enable": "녹화 후 자동 확대 켜기",
- "disable": "녹화 후 자동 확대 끄기",
- "needsEditableCursor": "자동 확대는 편집 가능한 커서가 필요합니다. 커서 모드를 전환하세요."
- },
"sourceSelector": {
"loading": "소스 불러오는 중...",
"screens": "화면 ({{count}}개)",
diff --git a/src/i18n/locales/pt-BR/editor.json b/src/i18n/locales/pt-BR/editor.json
index 5140df314..e913b61dc 100644
--- a/src/i18n/locales/pt-BR/editor.json
+++ b/src/i18n/locales/pt-BR/editor.json
@@ -110,8 +110,6 @@
"microphone": "Microfone",
"camera": "Câmera",
"cursorHighlight": "Destaque do cursor",
- "autoZoom": "Zoom automático após a gravação",
- "autoZoomNeedsEditableCursor": "O zoom automático precisa do cursor editável. Alterne o modo do cursor para ativar.",
"on": "Ativado",
"off": "Desativado",
"loading": "Carregando…",
diff --git a/src/i18n/locales/pt-BR/launch.json b/src/i18n/locales/pt-BR/launch.json
index a10645385..4d1fc9270 100644
--- a/src/i18n/locales/pt-BR/launch.json
+++ b/src/i18n/locales/pt-BR/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "Usar cursor editável",
"useSystemCursor": "Usar cursor do sistema"
},
- "autoZoom": {
- "enable": "Ativar zoom automático após a gravação",
- "disable": "Desativar zoom automático após a gravação",
- "needsEditableCursor": "O zoom automático precisa do cursor editável. Alterne o modo do cursor para ativar."
- },
"sourceSelector": {
"loading": "Carregando fontes...",
"screens": "Telas ({{count}})",
diff --git a/src/i18n/locales/ru/editor.json b/src/i18n/locales/ru/editor.json
index 3a384dce6..d0f663c41 100644
--- a/src/i18n/locales/ru/editor.json
+++ b/src/i18n/locales/ru/editor.json
@@ -110,8 +110,6 @@
"microphone": "Микрофон",
"camera": "Камера",
"cursorHighlight": "Подсветка курсора",
- "autoZoom": "Автомасштабирование после записи",
- "autoZoomNeedsEditableCursor": "Автомасштабирование требует редактируемый курсор. Переключите режим курсора.",
"on": "Вкл",
"off": "Выкл",
"loading": "Загрузка…",
diff --git a/src/i18n/locales/ru/launch.json b/src/i18n/locales/ru/launch.json
index 67fb6f637..0af9564c4 100644
--- a/src/i18n/locales/ru/launch.json
+++ b/src/i18n/locales/ru/launch.json
@@ -78,11 +78,6 @@
"useEditableCursor": "Использовать редактируемый курсор",
"useSystemCursor": "Использовать системный курсор"
},
- "autoZoom": {
- "enable": "Включить автомасштабирование после записи",
- "disable": "Отключить автомасштабирование после записи",
- "needsEditableCursor": "Автомасштабирование требует редактируемый курсор. Переключите режим курсора."
- },
"softwareEncoderFallback": {
"title": "Выполнен переход на программное кодирование",
"description": "Стандартный GPU-кодировщик не запустился, поэтому OpenScreen перешёл на программное кодирование H.264. Запись продолжится как обычно, но нагрузка на процессор может быть выше.",
diff --git a/src/i18n/locales/tr/editor.json b/src/i18n/locales/tr/editor.json
index 3d5857891..b30bc78d6 100644
--- a/src/i18n/locales/tr/editor.json
+++ b/src/i18n/locales/tr/editor.json
@@ -110,8 +110,6 @@
"microphone": "Mikrofon",
"camera": "Kamera",
"cursorHighlight": "İmleç vurgusu",
- "autoZoom": "Kayıttan sonra otomatik yakınlaştırma",
- "autoZoomNeedsEditableCursor": "Otomatik yakınlaştırma düzenlenebilir imleç ister. Etkinleştirmek için imleç modunu değiştirin.",
"on": "Açık",
"off": "Kapalı",
"loading": "Yükleniyor…",
diff --git a/src/i18n/locales/tr/launch.json b/src/i18n/locales/tr/launch.json
index a5b84df60..632709c82 100644
--- a/src/i18n/locales/tr/launch.json
+++ b/src/i18n/locales/tr/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "Düzenlenebilir imleci kullan",
"useSystemCursor": "Sistem imlecini kullan"
},
- "autoZoom": {
- "enable": "Kayıttan sonra otomatik yakınlaştırmayı aç",
- "disable": "Kayıttan sonra otomatik yakınlaştırmayı kapat",
- "needsEditableCursor": "Otomatik yakınlaştırma düzenlenebilir imleç ister. Etkinleştirmek için imleç modunu değiştirin."
- },
"sourceSelector": {
"loading": "Kaynaklar yükleniyor...",
"screens": "Ekranlar ({{count}})",
diff --git a/src/i18n/locales/vi/editor.json b/src/i18n/locales/vi/editor.json
index e6d843416..60db3e563 100644
--- a/src/i18n/locales/vi/editor.json
+++ b/src/i18n/locales/vi/editor.json
@@ -110,8 +110,6 @@
"microphone": "Micro",
"camera": "Máy ảnh",
"cursorHighlight": "Làm nổi bật con trỏ",
- "autoZoom": "Tự động phóng to sau khi ghi",
- "autoZoomNeedsEditableCursor": "Tự động phóng to cần con trỏ chỉnh sửa được. Hãy đổi chế độ con trỏ.",
"on": "Bật",
"off": "Tắt",
"loading": "Đang tải…",
diff --git a/src/i18n/locales/vi/launch.json b/src/i18n/locales/vi/launch.json
index e4997af28..98405bf99 100644
--- a/src/i18n/locales/vi/launch.json
+++ b/src/i18n/locales/vi/launch.json
@@ -78,11 +78,6 @@
"useEditableCursor": "Dùng con trỏ có thể chỉnh sửa",
"useSystemCursor": "Dùng con trỏ hệ thống"
},
- "autoZoom": {
- "enable": "Bật tự động phóng to sau khi ghi",
- "disable": "Tắt tự động phóng to sau khi ghi",
- "needsEditableCursor": "Tự động phóng to cần con trỏ chỉnh sửa được. Hãy đổi chế độ con trỏ."
- },
"softwareEncoderFallback": {
"title": "Đã chuyển sang mã hóa bằng phần mềm",
"description": "Bộ mã hóa GPU mặc định không khởi động được, nên OpenScreen đã chuyển sang mã hóa H.264 bằng phần mềm. Quá trình ghi vẫn tiếp tục bình thường, nhưng mức sử dụng CPU có thể cao hơn.",
diff --git a/src/i18n/locales/zh-CN/editor.json b/src/i18n/locales/zh-CN/editor.json
index 1a0677f39..15fb5cf09 100644
--- a/src/i18n/locales/zh-CN/editor.json
+++ b/src/i18n/locales/zh-CN/editor.json
@@ -110,8 +110,6 @@
"microphone": "麦克风",
"camera": "摄像头",
"cursorHighlight": "光标高亮",
- "autoZoom": "录制后自动缩放",
- "autoZoomNeedsEditableCursor": "自动缩放需要可编辑光标。请先切换光标模式。",
"on": "开",
"off": "关",
"loading": "加载中…",
diff --git a/src/i18n/locales/zh-CN/launch.json b/src/i18n/locales/zh-CN/launch.json
index 521591aaa..e7efe8eec 100644
--- a/src/i18n/locales/zh-CN/launch.json
+++ b/src/i18n/locales/zh-CN/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "使用可编辑光标",
"useSystemCursor": "使用系统光标"
},
- "autoZoom": {
- "enable": "启用录制后自动缩放",
- "disable": "关闭录制后自动缩放",
- "needsEditableCursor": "自动缩放需要可编辑光标。请先切换光标模式。"
- },
"sourceSelector": {
"loading": "正在加载源...",
"screens": "屏幕 ({{count}})",
diff --git a/src/i18n/locales/zh-TW/editor.json b/src/i18n/locales/zh-TW/editor.json
index cd04d873e..62f162592 100644
--- a/src/i18n/locales/zh-TW/editor.json
+++ b/src/i18n/locales/zh-TW/editor.json
@@ -110,8 +110,6 @@
"microphone": "麥克風",
"camera": "攝影機",
"cursorHighlight": "游標醒目提示",
- "autoZoom": "錄製後自動縮放",
- "autoZoomNeedsEditableCursor": "自動縮放需要可編輯游標。請先切換游標模式。",
"on": "開",
"off": "關",
"loading": "載入中…",
diff --git a/src/i18n/locales/zh-TW/launch.json b/src/i18n/locales/zh-TW/launch.json
index 9e6361bd8..025e422e7 100644
--- a/src/i18n/locales/zh-TW/launch.json
+++ b/src/i18n/locales/zh-TW/launch.json
@@ -56,11 +56,6 @@
"useEditableCursor": "使用可編輯游標",
"useSystemCursor": "使用系統游標"
},
- "autoZoom": {
- "enable": "啟用錄製後自動縮放",
- "disable": "關閉錄製後自動縮放",
- "needsEditableCursor": "自動縮放需要可編輯游標。請先切換游標模式。"
- },
"sourceSelector": {
"loading": "正在載入來源...",
"screens": "螢幕 ({{count}})",
diff --git a/src/native/browserShim.ts b/src/native/browserShim.ts
index c973d3a44..c9e5d395b 100644
--- a/src/native/browserShim.ts
+++ b/src/native/browserShim.ts
@@ -47,7 +47,6 @@ type ShimRecordingPrefs = {
camDeviceId: string | null;
systemAudioEnabled: boolean;
cursorCaptureMode: "editable-overlay" | "system";
- autoZoomEnabled: boolean;
};
const recordingPrefsStorageKey = "browser-shim-recording-prefs";
let shimRecordingPrefs: ShimRecordingPrefs = {
@@ -58,7 +57,6 @@ let shimRecordingPrefs: ShimRecordingPrefs = {
camDeviceId: null,
systemAudioEnabled: false,
cursorCaptureMode: "editable-overlay",
- autoZoomEnabled: true,
};
(() => {
try {