mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where the text element containerStartDelay timer was sometimes not reset
This commit is contained in:
parent
8dcf9af6f3
commit
6a1d6e2844
|
@ -174,6 +174,7 @@ void ScrollableContainer::update(int deltaTime)
|
|||
// Don't scroll if the media viewer or screensaver is active or if text scrolling is disabled;
|
||||
if (mWindow->isMediaViewerActive() || mWindow->isScreensaverActive() ||
|
||||
!mWindow->getAllowTextScrolling()) {
|
||||
mAutoScrollAccumulator = -mAutoScrollDelay;
|
||||
if (mScrollPos != glm::vec2 {0.0f, 0.0f} && !mWindow->isLaunchScreenDisplayed())
|
||||
resetComponent();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue