diff options
author | Alex Yatskov <FooSoft@users.noreply.github.com> | 2019-09-05 19:46:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 19:46:43 -0700 |
commit | 155986db4626f1eaacc7ce8455ae6aa6348f0653 (patch) | |
tree | 82587d185ebedb04badcad9772e1ada78a010a2b /ext/fg/js/frontend.js | |
parent | 6dc44e3f33d6f2ac2b5b7442879631a2943fcadc (diff) | |
parent | 5c793180d04e6b5eafaf01c823f5f5e07639cfa9 (diff) |
Merge pull request #201 from toasted-nutbread/omit-contains-point-check
Omit containsPoint check on searchAt
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r-- | ext/fg/js/frontend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index b70bf036..079a7ef2 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -302,7 +302,7 @@ class Frontend { } const textSource = docRangeFromPoint(point, this.options); - let hideResults = !textSource || !textSource.containsPoint(point); + let hideResults = textSource === null; let searched = false; let success = false; |