The textlist navigation sound will now always start playing immediately when scrolling a single entry

This commit is contained in:
Leon Styhre 2023-07-13 14:26:11 +02:00
parent 8b67782340
commit 8e24c7b1d4

View file

@ -95,10 +95,12 @@ private:
void onScroll() override
{
if (mGamelistView &&
!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND))
(!isScrolling() ||
!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND)))
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
else if (!mGamelistView &&
!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SYSTEMBROWSESOUND))
(!isScrolling() || !NavigationSounds::getInstance().isPlayingThemeNavigationSound(
SYSTEMBROWSESOUND)))
NavigationSounds::getInstance().playThemeNavigationSound(SYSTEMBROWSESOUND);
}
void onCursorChanged(const CursorState& state) override;