summaryrefslogtreecommitdiff
path: root/ext/fg/js/frontend.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-23 17:39:00 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-22 20:38:21 -0500
commit351598a1829930a25a27a007fb3bc69bde251787 (patch)
tree9828fb174777f1f31a491942a29decf6a7b4bf81 /ext/fg/js/frontend.js
parente740965d4f39a34eecf8a211f22eddf56d185fed (diff)
Add settings to control popup content scale
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r--ext/fg/js/frontend.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 52e3a5bc..d2fe9e76 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -196,7 +196,9 @@ class Frontend extends TextScanner {
}
_updateContentScale() {
- const contentScale = 1.0 / this._pageZoomFactor; // TODO : Use options
+ const {popupScalingFactor, popupScaleRelativeToPageZoom} = this.options.general;
+ let contentScale = popupScalingFactor;
+ if (popupScaleRelativeToPageZoom) { contentScale /= this._pageZoomFactor; }
if (contentScale === this._contentScale) { return; }
this._contentScale = contentScale;