summaryrefslogtreecommitdiff
path: root/js/post-hover.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/post-hover.js')
-rw-r--r--js/post-hover.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/post-hover.js b/js/post-hover.js
index e3e4dc62..e30cbf43 100644
--- a/js/post-hover.js
+++ b/js/post-hover.js
@@ -58,8 +58,8 @@ onready(function(){
// link links to itself or to op; ignore
}
else if($post.is(':visible') &&
- $post.offset().top + $post.height() >= $(window).scrollTop() &&
- $post.offset().top <= $(window).scrollTop() + $(window).height()) {
+ $post.offset().top >= $(window).scrollTop() &&
+ $post.offset().top + $post.height() <= $(window).scrollTop() + $(window).height()) {
// post is in view
$post.addClass('highlighted');
} else {