summaryrefslogtreecommitdiff
path: root/searx/static/plugins/js/infinite_scroll.js
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/plugins/js/infinite_scroll.js')
-rw-r--r--searx/static/plugins/js/infinite_scroll.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/static/plugins/js/infinite_scroll.js b/searx/static/plugins/js/infinite_scroll.js
index 9cd582d7f..1a95756a0 100644
--- a/searx/static/plugins/js/infinite_scroll.js
+++ b/searx/static/plugins/js/infinite_scroll.js
@@ -1,7 +1,7 @@
$(document).ready(function() {
var win = $(window);
win.scroll(function() {
- if ($(document).height() - win.height() == win.scrollTop()) {
+ if ($(document).height() - win.height() - win.scrollTop() < 150) {
var formData = $('#pagination form:last').serialize();
if (formData) {
$('#pagination').html('<div class="loading-spinner"></div>');