mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 12:05:38 +00:00
Eliminated some incorrect and unnecessary cursor stops in IList.
Also got rid of some unnecessary cursor stops triggered by TextListComponent.
This commit is contained in:
parent
7718e97d29
commit
15314fff84
|
@ -101,6 +101,9 @@ public:
|
||||||
|
|
||||||
void stopScrolling()
|
void stopScrolling()
|
||||||
{
|
{
|
||||||
|
if (mScrollVelocity == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
mTitleOverlayOpacity = 0.0f;
|
mTitleOverlayOpacity = 0.0f;
|
||||||
|
|
||||||
listInput(0);
|
listInput(0);
|
||||||
|
|
|
@ -282,7 +282,7 @@ template <typename T> void TextListComponent<T>::update(int deltaTime)
|
||||||
{
|
{
|
||||||
List::listUpdate(deltaTime);
|
List::listUpdate(deltaTime);
|
||||||
|
|
||||||
if (mWindow->isScreensaverActive() || !mWindow->getAllowTextScrolling())
|
if (isScrolling() && (mWindow->isScreensaverActive() || !mWindow->getAllowTextScrolling()))
|
||||||
List::stopScrolling();
|
List::stopScrolling();
|
||||||
|
|
||||||
if (!isScrolling() && size() > 0) {
|
if (!isScrolling() && size() > 0) {
|
||||||
|
|
Loading…
Reference in a new issue