From dce143a48e8f3f4d3d369c365963008171b28d85 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Sat, 24 May 2025 19:02:15 +0300 Subject: [PATCH] fix: infinty scroll for high screens --- VKAPI/Handlers/Board.php | 6 +++--- VKAPI/Handlers/Groups.php | 2 +- Web/static/js/al_wall.js | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/VKAPI/Handlers/Board.php b/VKAPI/Handlers/Board.php index c921ee8f..e2e9b86b 100644 --- a/VKAPI/Handlers/Board.php +++ b/VKAPI/Handlers/Board.php @@ -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); diff --git a/VKAPI/Handlers/Groups.php b/VKAPI/Handlers/Groups.php index 7d7a466c..6492ca20 100644 --- a/VKAPI/Handlers/Groups.php +++ b/VKAPI/Handlers/Groups.php @@ -411,7 +411,7 @@ final class Groups extends VKAPIRequestHandler $obj = (object) [ "count" => sizeof($members), - "items" => [] + "items" => [], ]; foreach ($members as $member) { diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 5f57bee6..841e5ac4 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -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) }