From 1715afe676ac0fdfb979de318c3f53dc72ca9d0d Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Sat, 11 Feb 2012 18:51:19 -0500 Subject: Show hints for links that are slightly out of the screen. Closes #472. --- lib/domUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/domUtils.js b/lib/domUtils.js index 159867d9..cfb1202b 100644 --- a/lib/domUtils.js +++ b/lib/domUtils.js @@ -41,8 +41,8 @@ var domUtils = { var clientRectsLength = clientRects.length; for (var i = 0; i < clientRectsLength; i++) { - if (clientRects[i].top < 0 || clientRects[i].top >= window.innerHeight - 4 || - clientRects[i].left < 0 || clientRects[i].left >= window.innerWidth - 4) + if (clientRects[i].top < -2 || clientRects[i].top >= window.innerHeight - 4 || + clientRects[i].left < -2 || clientRects[i].left >= window.innerWidth - 4) continue; if (clientRects[i].width < 3 || clientRects[i].height < 3) -- cgit v1.2.3