chore: generate
This commit is contained in:
@@ -21,10 +21,13 @@ const clamp = (value: number) => Math.min(Math.max(value, MIN_ZOOM_LEVEL), MAX_Z
|
|||||||
|
|
||||||
const applyZoom = (next: number) => {
|
const applyZoom = (next: number) => {
|
||||||
requestedZoom = next
|
requestedZoom = next
|
||||||
void window.api.setZoomFactor(next).then(() => {
|
void window.api
|
||||||
|
.setZoomFactor(next)
|
||||||
|
.then(() => {
|
||||||
if (requestedZoom !== next) return
|
if (requestedZoom !== next) return
|
||||||
setWebviewZoom(next)
|
setWebviewZoom(next)
|
||||||
}).catch(() => {
|
})
|
||||||
|
.catch(() => {
|
||||||
if (requestedZoom !== next) return
|
if (requestedZoom !== next) return
|
||||||
requestedZoom = webviewZoom()
|
requestedZoom = webviewZoom()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user