Browse Source

post-hover.js: show a popup preview if a reply is only partially on screen; fixes ctrlcctrlv#84

pull/40/head
czaks 10 years ago
parent
commit
ba515c5f05
  1. 4
      js/post-hover.js

4
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 {

Loading…
Cancel
Save