diff --git a/src/boot.js b/src/boot.js index f0226591..54d4f949 100644 --- a/src/boot.js +++ b/src/boot.js @@ -78,7 +78,7 @@ if (!s.elementFromPoint(x, y)) { s = document; } - return this.searchRoot(document, x, y); + return this.searchRoot(s, x, y); } }; scope.targetFinding = target;