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
This commit is contained in:
Ashay
2026-07-07 16:58:04 +05:30
parent e3dd77d34f
commit b947a1decf
+1 -1
View File
@@ -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"));