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) => {
|
||||
requestedZoom = next
|
||||
void window.api.setZoomFactor(next).then(() => {
|
||||
void window.api
|
||||
.setZoomFactor(next)
|
||||
.then(() => {
|
||||
if (requestedZoom !== next) return
|
||||
setWebviewZoom(next)
|
||||
}).catch(() => {
|
||||
})
|
||||
.catch(() => {
|
||||
if (requestedZoom !== next) return
|
||||
requestedZoom = webviewZoom()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user