From c12eecbb028bdc39e36e1a205f6ca898d52e0f9b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Oct 2023 15:00:00 +0300 Subject: more fixes for #3736 --- plugins/NewStory/src/history_control.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 6e69fcb521..fdf43124b0 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -146,13 +146,10 @@ void NewstoryListData::AddSelection(int iFirst, int iLast) bool NewstoryListData::AtBottom(void) const { - if (cachedMaxDrawnItem == -1) + if (scrollTopItem > cachedMaxTopItem) return true; - if (cachedMaxDrawnItem > totalCount) - return true; - - if (cachedMaxDrawnItem == totalCount && cachedMaxTopPixel >= scrollTopPixel) + if (scrollTopItem == cachedMaxTopItem && cachedMaxTopPixel >= scrollTopPixel) return true; return false; -- cgit v1.2.3