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")}
>
<div data-action="settings-pinch-zoom">
<Switch
checked={pinchZoom.latest}
onChange={onPinchZoomChange}
/>
<Switch checked={pinchZoom.latest} onChange={onPinchZoomChange} />
</div>
</SettingsRow>

View file

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