summaryrefslogtreecommitdiff
path: root/js/post-hover.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-09-26 14:08:40 +0200
committerczaks <marcin@6irc.net>2014-09-26 14:08:40 +0200
commitb4b99cd9369c6418534536c5eb5b7b127ab55dfa (patch)
treec6d651753c0461ba2eaa04c34f633b82e148c2f2 /js/post-hover.js
parent359c295ecaf079318d55b1acc6e900ee74feb6d3 (diff)
parentbfb85fc2b19bcc895bd0034d0d7a9d7b64f481f4 (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Conflicts: stylesheets/style.css
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 2808b8e7..0becfb70 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 {