chore: generate
This commit is contained in:
parent
2caac055ef
commit
4a976482b1
@ -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>
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user