fix(scrolling): wrong scrolling that causes dups

This commit is contained in:
mrilyew 2025-05-31 11:17:58 +03:00 committed by Alexander Minkin
parent 808d622061
commit 99176789ae

View file

@ -2424,6 +2424,9 @@ const showMoreObserver = new IntersectionObserver(entries => {
if(target.length < 1 || target.hasClass('paginator-at-top')) { if(target.length < 1 || target.hasClass('paginator-at-top')) {
return return
} }
if(target.hasClass('lagged')) {
return
}
const current_url = new URL(location.href) const current_url = new URL(location.href)
if(current_url.searchParams && !isNaN(parseInt(current_url.searchParams.get('p')))) { if(current_url.searchParams && !isNaN(parseInt(current_url.searchParams.get('p')))) {