forked from GithubBackups/vichan
Make scroll event faster in auto-reload.js
This commit is contained in:
parent
5c57bd44e1
commit
e26cfbb889
@ -287,8 +287,6 @@ $(document).ready(function(){
|
|||||||
};
|
};
|
||||||
|
|
||||||
$(window).scroll(function() {
|
$(window).scroll(function() {
|
||||||
recheck_activated();
|
|
||||||
|
|
||||||
// if the newest post is not visible
|
// if the newest post is not visible
|
||||||
if($(this).scrollTop() + $(this).height() <
|
if($(this).scrollTop() + $(this).height() <
|
||||||
$('div.post:last').position().top + $('div.post:last').height()) {
|
$('div.post:last').position().top + $('div.post:last').height()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user