Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2024-08-21 12:55:56 -04:00

View File

@@ -20,8 +20,9 @@ define('forum/infinitescroll', ['hooks', 'alerts', 'api'], function (hooks, aler
}
previousScrollTop = $(window).scrollTop();
$(window).off('scroll', startScrollTimeout).on('scroll', startScrollTimeout);
if ($body.height() <= $(window).height()) {
if ($body.height() <= $(window).height() && (
!ajaxify.data.hasOwnProperty('pageCount') || ajaxify.data.pageCount > 1
)) {
callback(1);
}
};