From c3cb0acccd9d3585db20333ed02a7c3752b48c7a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 7 Aug 2023 19:16:46 +0300 Subject: =?UTF-8?q?fixes=20#3627=20(NewStory:=20=D0=BF=D1=80=D0=BE=D0=BA?= =?UTF-8?q?=D1=80=D1=83=D1=82=D0=BA=D0=B0=20=D0=BC=D1=8B=D1=88=D1=8C=D1=8E?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=B7=D0=B2=D0=BE=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20=D0=B2=D0=B5=D1=80=D0=BD=D1=83=D1=82=D1=8C=D1=81?= =?UTF-8?q?=D1=8F=20=D0=BA=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD?= =?UTF-8?q?=D0=B5=D0=BC=D1=83=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8E)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewStory') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 3e78830322..8830e4c148 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -504,7 +504,7 @@ void NewstoryListData::LineUp() void NewstoryListData::LineDown() { - if (cachedMaxDrawnItem >= totalCount) + if (cachedMaxDrawnItem >= totalCount && cachedMaxTopPixel >= 0) return; scrollTopItem++; @@ -520,7 +520,7 @@ void NewstoryListData::PageUp() if (scrollTopPixel == 0) scrollTopItem -= 10; else { - cachedMaxTopItem -= 9; + scrollTopItem -= 9; scrollTopPixel = 0; } FixScrollPosition(); @@ -529,7 +529,7 @@ void NewstoryListData::PageUp() void NewstoryListData::PageDown() { - if (cachedMaxDrawnItem >= totalCount) + if (cachedMaxDrawnItem >= totalCount && cachedMaxTopPixel >= 0) return; scrollTopItem = cachedMaxDrawnItem - 1; -- cgit v1.2.3