From 2d151921db39f7d175a3a03b95ac39f8596c61c0 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 29 Jul 2023 11:27:12 +0200 Subject: [PATCH] Fixed an issue where the camera offset in ComponentList was not correctly calculated when reaching the bottom of a list --- es-core/src/components/ComponentList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/ComponentList.cpp b/es-core/src/components/ComponentList.cpp index caca4facb..58e0f7b96 100644 --- a/es-core/src/components/ComponentList.cpp +++ b/es-core/src/components/ComponentList.cpp @@ -250,7 +250,7 @@ void ComponentList::updateCameraOffset() unsigned int i {0}; while (mCameraOffset < target && i < mEntries.size()) { mCameraOffset += mRowHeight; - if (mCameraOffset > totalHeight - mSize.y) { + if (mCameraOffset >= totalHeight - mSize.y) { if (mSetupCompleted) { if (mScrollIndicatorStatus == ComponentList::SCROLL_NONE && oldCameraOffset == 0.0f)