Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #165 from gemini-testing/fix/elemwithin
Browse files Browse the repository at this point in the history
Fix elemWithinArea() check to test inclusion and intersection
  • Loading branch information
scf2k committed May 14, 2015
2 parents 58d6ee2 + f3f36d4 commit 70e8955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/client-scripts/gemini.coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function elemWithinArea(elem, captureRect) {
var elemRect = rect.getAbsoluteClientRect(elem);
if (captureRect.rectInside(elemRect)) {
return true;
} else if (elemRect.rectInside(captureRect)) {
} else if (captureRect.rectIntersects(captureRect)) {
return false;
}
}

0 comments on commit 70e8955

Please sign in to comment.