Animations in GridComponent are now finished on menu opening, game launch etc.

This commit is contained in:
Leon Styhre 2022-12-03 14:29:17 +01:00
parent b67ce99a0e
commit 825d220be0

View file

@ -79,7 +79,13 @@ private:
}
void onCursorChanged(const CursorState& state) override;
bool isScrolling() const override { return List::isScrolling(); }
void stopScrolling() override { List::stopScrolling(); }
void stopScrolling() override
{
List::stopScrolling();
// Only finish the animation if we're in the gamelist view.
if (mGamelistView)
GuiComponent::finishAnimation(0);
}
const int getScrollingVelocity() override { return List::getScrollingVelocity(); }
void clear() override { List::clear(); }
const T& getSelected() const override { return List::getSelected(); }