aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-04-10 02:48:41 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-11 21:01:27 +0300
commit1df59d57b5dcbf9d3efedcb21a4d5e16524a67c1 (patch)
tree9e7bac2da9d43bcb34ebb1b5ae2c8560a3600b7a /ext/fg
parent61a96e327a815bda7fea4c5d2096dead901fdf33 (diff)
limit popup depth live
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/frontend.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 55d699e5..a6b24c76 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -30,7 +30,8 @@ class Frontend extends TextScanner {
super(
window,
popup.isProxy() ? [] : [popup.getContainer()],
- [(x, y) => this.popup.containsPoint(x, y)]
+ [(x, y) => this.popup.containsPoint(x, y)],
+ () => this.popup.depth <= this.options.scanning.popupNestingMaxDepth
);
this.popup = popup;