diff --git a/js/auto-reload.js b/js/auto-reload.js index 5aeb7b88..36ba9e92 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -219,10 +219,12 @@ $(document).ready(function(){ return false; }; - - $(window).scroll(function() { - recheck_activated(); - + + $(post).on('submit', function(e){ + poll_current_time = poll_interval_mindelay; + }); + + $(window).scrollStopped(function() { // if the newest post is not visible if($(this).scrollTop() + $(this).height() < $('div.post').last().position().top + $('div.post').last().height()) {