From b947a1decf1ddabdce98d22896e23999b2f5ea1e Mon Sep 17 00:00:00 2001 From: Ashay Date: Tue, 7 Jul 2026 16:54:16 +0530 Subject: [PATCH] Fix infinite scroll not triggering on mobile browsers The scroll detection comparison was too strict for mobile browsers that render subpixel scroll positions. Added 5px tolerance so the infinite scroll triggers reliably on mobile devices. Refs: #3664 --- cps/static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/static/js/main.js b/cps/static/js/main.js index 9138d80e6..bba191fc0 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -414,7 +414,7 @@ $(function() { $(".col-sm-10").bind("scroll", function () { if ( $(this).scrollTop() + $(this).innerHeight() >= - $(this)[0].scrollHeight + $(this)[0].scrollHeight - 5 ) { $loadMore.infiniteScroll("loadNextPage"); window.history.replaceState({}, null, $loadMore.infiniteScroll("getAbsolutePath"));