Browse Source

Force post-hover.js to show OP's on hover.

pull/40/head
fatchan 8 years ago
committed by czaks
parent
commit
aa0d92a2b4
  1. 5
      js/post-hover.js

5
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

Loading…
Cancel
Save