Reader: Add hook for setting zoom on iframe element (#4003)

This commit is contained in:
Abe Jellinek 2024-04-18 10:05:18 -04:00 committed by GitHub
parent ff3c249b6d
commit 402538457e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -534,7 +534,11 @@ class ReaderInstance {
if (!focused) {
win.Zotero_Tabs.moveFocus("current");
}
}
},
onSetZoom: (iframe, zoom) => {
iframe.browsingContext.textZoom = 1;
iframe.browsingContext.fullZoom = zoom;
},
}, this._iframeWindow, { cloneFunctions: true }));
this._resolveInitPromise();