Enabled textlist fast-scrolling for the system view

This commit is contained in:
Leon Styhre 2023-07-13 13:42:29 +02:00
parent 0d2488d80e
commit 8b67782340

View file

@ -97,7 +97,8 @@ private:
if (mGamelistView && if (mGamelistView &&
!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND)) !NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND))
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND); NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
else if (!mGamelistView) else if (!mGamelistView &&
!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SYSTEMBROWSESOUND))
NavigationSounds::getInstance().playThemeNavigationSound(SYSTEMBROWSESOUND); NavigationSounds::getInstance().playThemeNavigationSound(SYSTEMBROWSESOUND);
} }
void onCursorChanged(const CursorState& state) override; void onCursorChanged(const CursorState& state) override;
@ -159,9 +160,7 @@ private:
template <typename T> template <typename T>
TextListComponent<T>::TextListComponent() TextListComponent<T>::TextListComponent()
: IList<TextListData, T> {(std::is_same_v<T, SystemData*> ? : IList<TextListData, T> {IList<TextListData, T>::LIST_SCROLL_STYLE_QUICK,
IList<TextListData, T>::LIST_SCROLL_STYLE_SLOW :
IList<TextListData, T>::LIST_SCROLL_STYLE_QUICK),
ListLoopType::LIST_PAUSE_AT_END} ListLoopType::LIST_PAUSE_AT_END}
, mRenderer {Renderer::getInstance()} , mRenderer {Renderer::getInstance()}
, mCamOffset {0.0f} , mCamOffset {0.0f}