Reader: Add hook for setting zoom on iframe element (#4003)
This commit is contained in:
parent
ff3c249b6d
commit
402538457e
1 changed files with 5 additions and 1 deletions
|
@ -534,7 +534,11 @@ class ReaderInstance {
|
||||||
if (!focused) {
|
if (!focused) {
|
||||||
win.Zotero_Tabs.moveFocus("current");
|
win.Zotero_Tabs.moveFocus("current");
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
onSetZoom: (iframe, zoom) => {
|
||||||
|
iframe.browsingContext.textZoom = 1;
|
||||||
|
iframe.browsingContext.fullZoom = zoom;
|
||||||
|
},
|
||||||
}, this._iframeWindow, { cloneFunctions: true }));
|
}, this._iframeWindow, { cloneFunctions: true }));
|
||||||
|
|
||||||
this._resolveInitPromise();
|
this._resolveInitPromise();
|
||||||
|
|
Loading…
Reference in a new issue