mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed an issue where ScrollableContainer would reset too early.
This commit is contained in:
parent
2f5bc97d4c
commit
0f327582c1
|
@ -188,8 +188,8 @@ void ScrollableContainer::update(int deltaTime)
|
|||
if (mScrollPos.y < 0.0f)
|
||||
mScrollPos.y = 0.0f;
|
||||
|
||||
if (mScrollPos.x + mSize.x > contentSize.x) {
|
||||
mScrollPos.x = contentSize.x - mSize.x;
|
||||
if (mScrollPos.x + std::round(mSize.x) > contentSize.x) {
|
||||
mScrollPos.x = contentSize.x - std::round(mSize.x);
|
||||
mAtEnd = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue