fix: infinty scroll for high screens

This commit is contained in:
mrilyew 2025-05-24 19:02:15 +03:00 committed by Alexander Minkin
parent 1af6cd83e4
commit dce143a48e
3 changed files with 7 additions and 4 deletions

View file

@ -56,7 +56,7 @@ final class Board extends VKAPIRequestHandler
$comment->save();
}
} catch(\Throwable $e) {
} catch (\Throwable $e) {
return $topic->getId();
}
@ -183,7 +183,7 @@ final class Board extends VKAPIRequestHandler
}
$obj = (object) [
"items" => []
"items" => [],
];
if ($extended) {
@ -222,7 +222,7 @@ final class Board extends VKAPIRequestHandler
$this->fail(4, "Invalid count");
}
$obj = (object)[];
$obj = (object) [];
$club = (new ClubsRepo())->get($group_id);

View file

@ -411,7 +411,7 @@ final class Groups extends VKAPIRequestHandler
$obj = (object) [
"count" => sizeof($members),
"items" => []
"items" => [],
];
foreach ($members as $member) {

View file

@ -2375,6 +2375,9 @@ async function __processPaginatorNextPage(page)
new_url.hash = page
//history.replaceState(null, null, new_url)
showMoreObserver.disconnect()
showMoreObserver.observe(u('.paginator:not(.paginator-at-top)').nodes[0])
if(typeof __scrollHook != 'undefined') {
__scrollHook(page)
}