diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-08-31 22:12:21 -0400 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-02 11:43:48 -0400 | 
| commit | 171e3f1097a86b993ba1e16c07c4ad6d5bff75ee (patch) | |
| tree | e04ec6758f7988037d077859c37e49eb6a487df3 /ext/fg/js/document.js | |
| parent | 737a5ee8a814bc89ac40f99264e8835c47f77387 (diff) | |
Add option for enabling deep scanning
Diffstat (limited to 'ext/fg/js/document.js')
| -rw-r--r-- | ext/fg/js/document.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js index 8bb857e7..727bc5d2 100644 --- a/ext/fg/js/document.js +++ b/ext/fg/js/document.js @@ -89,7 +89,7 @@ function docImposterCreate(element, isTextarea) {      return [imposter, container];  } -function docRangeFromPoint({x, y}) { +function docRangeFromPoint({x, y}, options) {      const elements = document.elementsFromPoint(x, y);      let imposter = null;      let imposterContainer = null; @@ -108,7 +108,7 @@ function docRangeFromPoint({x, y}) {          }      } -    const range = caretRangeFromPointExt(x, y, elements); +    const range = caretRangeFromPointExt(x, y, options.scanning.deepDomScan ? elements : []);      if (range !== null) {          if (imposter !== null) {              docSetImposterStyle(imposterContainer.style, 'z-index', '-2147483646'); |