mirror of
https://github.com/openvk/openvk
synced 2025-06-07 21:00:33 +03:00
fix: infinty scroll for high screens
This commit is contained in:
parent
1af6cd83e4
commit
dce143a48e
3 changed files with 7 additions and 4 deletions
|
@ -56,7 +56,7 @@ final class Board extends VKAPIRequestHandler
|
||||||
|
|
||||||
$comment->save();
|
$comment->save();
|
||||||
}
|
}
|
||||||
} catch(\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return $topic->getId();
|
return $topic->getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ final class Board extends VKAPIRequestHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
$obj = (object) [
|
$obj = (object) [
|
||||||
"items" => []
|
"items" => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($extended) {
|
if ($extended) {
|
||||||
|
@ -222,7 +222,7 @@ final class Board extends VKAPIRequestHandler
|
||||||
$this->fail(4, "Invalid count");
|
$this->fail(4, "Invalid count");
|
||||||
}
|
}
|
||||||
|
|
||||||
$obj = (object)[];
|
$obj = (object) [];
|
||||||
|
|
||||||
$club = (new ClubsRepo())->get($group_id);
|
$club = (new ClubsRepo())->get($group_id);
|
||||||
|
|
||||||
|
|
|
@ -411,7 +411,7 @@ final class Groups extends VKAPIRequestHandler
|
||||||
|
|
||||||
$obj = (object) [
|
$obj = (object) [
|
||||||
"count" => sizeof($members),
|
"count" => sizeof($members),
|
||||||
"items" => []
|
"items" => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($members as $member) {
|
foreach ($members as $member) {
|
||||||
|
|
|
@ -2375,6 +2375,9 @@ async function __processPaginatorNextPage(page)
|
||||||
new_url.hash = page
|
new_url.hash = page
|
||||||
//history.replaceState(null, null, new_url)
|
//history.replaceState(null, null, new_url)
|
||||||
|
|
||||||
|
showMoreObserver.disconnect()
|
||||||
|
showMoreObserver.observe(u('.paginator:not(.paginator-at-top)').nodes[0])
|
||||||
|
|
||||||
if(typeof __scrollHook != 'undefined') {
|
if(typeof __scrollHook != 'undefined') {
|
||||||
__scrollHook(page)
|
__scrollHook(page)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue