From 1fedee384ad74f4c933d911dcf51ed9044a753ce Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 9 Oct 2023 14:49:04 +0300 Subject: =?UTF-8?q?NewStory:=20=20fixes=20#3695=20(NewStory:=20=D0=B6?= =?UTF-8?q?=D1=83=D1=80=D0=BD=D0=B0=D0=BB=20=D0=BD=D0=B5=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BA=D1=80=D1=83=D1=87=D0=B8=D0=B2=D0=B0=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=8F=20=D0=B4=D0=BE=20=D0=BA=D0=BE=D0=BD=D1=86=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BF=D1=80=D0=B8=D1=85=D0=BE=D0=B4=D0=B5=20RSS?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index d62a0cb892..4ece082244 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -425,8 +425,7 @@ void NewstoryListData::FixScrollPosition(bool bForce) if (scrollTopItem < 0) scrollTopItem = 0; - if ((scrollTopItem > cachedMaxTopItem) || - ((scrollTopItem == cachedMaxTopItem) && (scrollTopPixel < cachedMaxTopPixel))) { + if (bForce || scrollTopItem > cachedMaxTopItem || (scrollTopItem == cachedMaxTopItem && scrollTopPixel < cachedMaxTopPixel)) { scrollTopItem = cachedMaxTopItem; scrollTopPixel = cachedMaxTopPixel; } -- cgit v1.2.3