Change post hover behaviour to show actual post, rather than last post in thread.

This commit is contained in:
Benjamin Southall 2017-03-03 15:07:27 +09:00
parent 21e7520caa
commit 7e0cf814fa

View File

@ -158,6 +158,11 @@ onready(function(){
top = scrollTop + $(window).height() - $hover.height() - 15;
}
var hovery = e.pageY ? e.pageY : hovered_at['y'];
if ( ( hovery - top) > 20){
top = hovery;
}
$hover.css('left', (e.pageX ? e.pageX : hovered_at['x']) + 1).css('top', top);
});