chore: generate

This commit is contained in:
opencode-agent[bot] 2026-05-21 10:46:02 +00:00
parent 2caac055ef
commit 4a976482b1
2 changed files with 2 additions and 7 deletions

View File

@ -753,10 +753,7 @@ export const SettingsGeneral: Component = () => {
description={language.t("settings.general.row.pinchZoom.description")} description={language.t("settings.general.row.pinchZoom.description")}
> >
<div data-action="settings-pinch-zoom"> <div data-action="settings-pinch-zoom">
<Switch <Switch checked={pinchZoom.latest} onChange={onPinchZoomChange} />
checked={pinchZoom.latest}
onChange={onPinchZoomChange}
/>
</div> </div>
</SettingsRow> </SettingsRow>

View File

@ -416,9 +416,7 @@ function wireZoom(win: BrowserWindow) {
win.webContents.on("zoom-changed", (event, zoomDirection) => { win.webContents.on("zoom-changed", (event, zoomDirection) => {
event.preventDefault() event.preventDefault()
if (pinchZoomEnabled.get(win)) { if (pinchZoomEnabled.get(win)) {
win.webContents.setZoomFactor( win.webContents.setZoomFactor(clampZoom(win.webContents.getZoomFactor() + (zoomDirection === "in" ? 0.2 : -0.2)))
clampZoom(win.webContents.getZoomFactor() + (zoomDirection === "in" ? 0.2 : -0.2)),
)
updateZoom(win) updateZoom(win)
return return
} }