Disable pointer events on hidden imposter

This commit is contained in:
toasted-nutbread 2019-08-31 14:13:47 -04:00
parent 62d66d93f7
commit e47e041217

View File

@ -94,6 +94,7 @@ function docRangeFromPoint(point) {
const range = document.caretRangeFromPoint(point.x, point.y); const range = document.caretRangeFromPoint(point.x, point.y);
if (imposter !== null) { if (imposter !== null) {
imposter.style.zIndex = -2147483646; imposter.style.zIndex = -2147483646;
imposter.style.pointerEvents = 'none';
} }
return range !== null && isPointInRange(point, range) ? new TextSourceRange(range) : null; return range !== null && isPointInRange(point, range) ? new TextSourceRange(range) : null;