mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Fix off-by-one skip amount
This commit is contained in:
@ -111,7 +111,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
while (true)
|
||||
{
|
||||
if (forwardsIndex >= Children.Count)
|
||||
return Children.Reverse().Skip(Children.Count - backwardsIndex).FirstOrDefault(item => !item.Filtered.Value);
|
||||
return Children.Reverse().Skip(Children.Count - backwardsIndex - 1).FirstOrDefault(item => !item.Filtered.Value);
|
||||
|
||||
if (backwardsIndex < 0)
|
||||
return Children.Skip(forwardsIndex).FirstOrDefault(item => !item.Filtered.Value);
|
||||
|
Reference in New Issue
Block a user