diff options
author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-06-30 13:49:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-30 13:49:16 +0200 |
commit | 69c8ad86f3505051c029146382cbaf9531a35a8a (patch) | |
tree | 6d345fd9d6537dc712d2d7b705e62af50e242332 | |
parent | 4c768f9fe6e43936d3f06ad619a45fe07fa8bebf (diff) | |
parent | 6c750528749afcfd878347df78ccd45aaf8afcd6 (diff) | |
download | searxng-69c8ad86f3505051c029146382cbaf9531a35a8a.tar.gz searxng-69c8ad86f3505051c029146382cbaf9531a35a8a.zip |
Merge pull request #1614 from Nachtalb/ne/improve-infinite-scroll
Improve infinite scroll (and with it fixing a bug)
-rw-r--r-- | searx/static/plugins/js/infinite_scroll.js | 2 |
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>'); |