mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 19:55:11 +00:00
chore: generate
This commit is contained in:
parent
2caac055ef
commit
4a976482b1
2 changed files with 2 additions and 7 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue