aboutsummaryrefslogtreecommitdiffstats
path: root/linkHints.js
diff options
context:
space:
mode:
authorint32010-04-17 22:47:15 +0000
committerilya2010-04-18 21:59:53 -0700
commit7deefa4a220d6349bd1e24957a2c5e5e3cf91486 (patch)
treeb88bf51ad9e07474f252fcf136e227f1718d2455 /linkHints.js
parent89e1336d1e56543719f3cf9e43189ff9da708a68 (diff)
downloadvimium-7deefa4a220d6349bd1e24957a2c5e5e3cf91486.tar.bz2
Fix offscreen link exclusion bug
Diffstat (limited to 'linkHints.js')
-rw-r--r--linkHints.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/linkHints.js b/linkHints.js
index a2d28dda..72fcd5c0 100644
--- a/linkHints.js
+++ b/linkHints.js
@@ -78,7 +78,7 @@ function getVisibleClickableElements() {
var boundingRect = element.getBoundingClientRect();
// Exclude links which have just a few pixels on screen, because the link hints won't show for them anyway.
if (boundingRect.bottom <= 4 || boundingRect.top >= window.innerHeight - 4 ||
- boundingRect.left <= 0 || boundingRect.right >= window.innerWidth - 4)
+ boundingRect.left <= 0 || boundingRect.left >= window.innerWidth - 4)
continue;
if (boundingRect.width < 3 || boundingRect.height < 3)