From e47e041217708c49032dd3d215eacb23276a1f59 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 31 Aug 2019 14:13:47 -0400 Subject: [PATCH] Disable pointer events on hidden imposter --- ext/fg/js/document.js | 1 + 1 file changed, 1 insertion(+) 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;