diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 959c7dc2b..a0cbfb79f 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -352,7 +352,7 @@ void SystemView::onCursorChanged(const CursorState& state) Animation* anim; - float animTime {380.0f}; + float animTime {400.0f}; float timeMin {200.0f}; float timeDiff {1.0f}; diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index 2ddfc63ab..bfb2db7f2 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -1480,7 +1480,7 @@ template void CarouselComponent::onCursorChanged(const CursorSta mPositiveDirection = false; mEntryCamTarget = endPos; - float animTime {380.0f}; + float animTime {400.0f}; float timeDiff {1.0f}; // If startPos is inbetween two positions then reduce the time slightly as the distance will diff --git a/es-core/src/components/primary/TextListComponent.h b/es-core/src/components/primary/TextListComponent.h index 717c53125..02a306ba2 100644 --- a/es-core/src/components/primary/TextListComponent.h +++ b/es-core/src/components/primary/TextListComponent.h @@ -707,7 +707,7 @@ template void TextListComponent::onCursorChanged(const CursorSta float posMax {static_cast(mEntries.size())}; float endPos {static_cast(mCursor)}; - float animTime {380.0f}; + float animTime {400.0f}; float timeDiff {1.0f}; // If startPos is inbetween two positions then reduce the time slightly as the distance will @@ -726,6 +726,7 @@ template void TextListComponent::onCursorChanged(const CursorSta // Non-linear interpolation. t = 1.0f - (1.0f - t) * (1.0f - t); float f {(endPos * t) + (startPos * (1.0f - t))}; + if (f < 0) f += posMax; if (f >= posMax)