aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/document.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-31 14:13:47 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-31 14:57:50 -0400
commite47e041217708c49032dd3d215eacb23276a1f59 (patch)
tree1aac1c72d0f8b8f88e473468c27f3bfc7c5ee43b /ext/fg/js/document.js
parent62d66d93f7e7f666184aa215c876691c5433043f (diff)
Disable pointer events on hidden imposter
Diffstat (limited to 'ext/fg/js/document.js')
-rw-r--r--ext/fg/js/document.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js
index 514f8f2e..a017a0a6 100644
--- a/ext/fg/js/document.js
+++ b/ext/fg/js/document.js
@@ -94,6 +94,7 @@ function docRangeFromPoint(point) {
const range = document.caretRangeFromPoint(point.x, point.y);
if (imposter !== null) {
imposter.style.zIndex = -2147483646;
+ imposter.style.pointerEvents = 'none';
}
return range !== null && isPointInRange(point, range) ? new TextSourceRange(range) : null;