diff options
| author | czaks <marcin@6irc.net> | 2014-09-26 14:08:40 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-09-26 14:08:40 +0200 |
| commit | b4b99cd9369c6418534536c5eb5b7b127ab55dfa (patch) | |
| tree | c6d651753c0461ba2eaa04c34f633b82e148c2f2 /js/post-hover.js | |
| parent | 359c295ecaf079318d55b1acc6e900ee74feb6d3 (diff) | |
| parent | bfb85fc2b19bcc895bd0034d0d7a9d7b64f481f4 (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.js | 4 |
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 { |
