mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +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,6 +113,7 @@ void ScrollableContainer::update(int deltaTime)
|
||||||
if (adjustedAutoScrollSpeed != 0) {
|
if (adjustedAutoScrollSpeed != 0) {
|
||||||
mAutoScrollAccumulator += deltaTime;
|
mAutoScrollAccumulator += deltaTime;
|
||||||
while (mAutoScrollAccumulator >= adjustedAutoScrollSpeed) {
|
while (mAutoScrollAccumulator >= adjustedAutoScrollSpeed) {
|
||||||
|
if (contentSize.y() > mSize.y())
|
||||||
mScrollPos += mScrollDir;
|
mScrollPos += mScrollDir;
|
||||||
mAutoScrollAccumulator -= adjustedAutoScrollSpeed;
|
mAutoScrollAccumulator -= adjustedAutoScrollSpeed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue