mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 01:25:38 +00:00
Fixed an issue where the camera offset in ComponentList was not correctly calculated when reaching the bottom of a list
This commit is contained in:
parent
0d18239893
commit
2d151921db
|
@ -250,7 +250,7 @@ void ComponentList::updateCameraOffset()
|
||||||
unsigned int i {0};
|
unsigned int i {0};
|
||||||
while (mCameraOffset < target && i < mEntries.size()) {
|
while (mCameraOffset < target && i < mEntries.size()) {
|
||||||
mCameraOffset += mRowHeight;
|
mCameraOffset += mRowHeight;
|
||||||
if (mCameraOffset > totalHeight - mSize.y) {
|
if (mCameraOffset >= totalHeight - mSize.y) {
|
||||||
if (mSetupCompleted) {
|
if (mSetupCompleted) {
|
||||||
if (mScrollIndicatorStatus == ComponentList::SCROLL_NONE &&
|
if (mScrollIndicatorStatus == ComponentList::SCROLL_NONE &&
|
||||||
oldCameraOffset == 0.0f)
|
oldCameraOffset == 0.0f)
|
||||||
|
|
Loading…
Reference in a new issue