mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed an issue in ScrollableContainer where the reset animation played when it shouldn't.
This commit is contained in:
parent
9a14bf3057
commit
6e58b5f2fa
|
@ -113,7 +113,8 @@ void ScrollableContainer::update(int deltaTime)
|
||||||
if (adjustedAutoScrollSpeed != 0) {
|
if (adjustedAutoScrollSpeed != 0) {
|
||||||
mAutoScrollAccumulator += deltaTime;
|
mAutoScrollAccumulator += deltaTime;
|
||||||
while (mAutoScrollAccumulator >= adjustedAutoScrollSpeed) {
|
while (mAutoScrollAccumulator >= adjustedAutoScrollSpeed) {
|
||||||
mScrollPos += mScrollDir;
|
if (contentSize.y() > mSize.y())
|
||||||
|
mScrollPos += mScrollDir;
|
||||||
mAutoScrollAccumulator -= adjustedAutoScrollSpeed;
|
mAutoScrollAccumulator -= adjustedAutoScrollSpeed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue