mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 02:16:03 +01:00
Force post-hover.js to show OP's on hover.
This commit is contained in:
parent
04f42b3802
commit
aa0d92a2b4
@ -54,10 +54,7 @@ onready(function(){
|
|||||||
hovered_at = {'x': e.pageX, 'y': e.pageY};
|
hovered_at = {'x': e.pageX, 'y': e.pageY};
|
||||||
|
|
||||||
var start_hover = function($link) {
|
var start_hover = function($link) {
|
||||||
if($.contains($post[0], $link[0])) {
|
if ($post.is(':visible') &&
|
||||||
// link links to itself or to op; ignore
|
|
||||||
}
|
|
||||||
else if($post.is(':visible') &&
|
|
||||||
$post.offset().top >= $(window).scrollTop() &&
|
$post.offset().top >= $(window).scrollTop() &&
|
||||||
$post.offset().top + $post.height() <= $(window).scrollTop() + $(window).height()) {
|
$post.offset().top + $post.height() <= $(window).scrollTop() + $(window).height()) {
|
||||||
// post is in view
|
// post is in view
|
||||||
|
Loading…
Reference in New Issue
Block a user