diff options
| author | fatchan <admin@fatpeople.lol> | 2016-06-01 20:35:17 +1000 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-06-09 11:20:39 +0200 |
| commit | aa0d92a2b413e268ecf60211cf2132248c3c72ad (patch) | |
| tree | b4ba4301c450f1d0955155f69697d0f073f21aee | |
| parent | 04f42b3802631a825d8ef112b153e66e962a0e66 (diff) | |
Force post-hover.js to show OP's on hover.
| -rw-r--r-- | js/post-hover.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/js/post-hover.js b/js/post-hover.js index 0becfb70..780f8cff 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -54,10 +54,7 @@ onready(function(){ hovered_at = {'x': e.pageX, 'y': e.pageY}; var start_hover = function($link) { - if($.contains($post[0], $link[0])) { - // link links to itself or to op; ignore - } - else if($post.is(':visible') && + if ($post.is(':visible') && $post.offset().top >= $(window).scrollTop() && $post.offset().top + $post.height() <= $(window).scrollTop() + $(window).height()) { // post is in view |
