1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 12:30:30 +08:00

Fix carousel activating selection when only one valid item in list

This commit is contained in:
Dean Herbert
2025-05-30 15:33:55 +09:00
Unverified
parent 9b77b958e0
commit b050e025dc
+5 -1
View File
@@ -530,6 +530,10 @@ namespace osu.Game.Graphics.Carousel
do
{
newIndex = (newIndex + direction + carouselItems.Count) % carouselItems.Count;
if (newIndex == originalIndex)
break;
var newItem = carouselItems[newIndex];
if (CheckValidForGroupSelection(newItem))
@@ -537,7 +541,7 @@ namespace osu.Game.Graphics.Carousel
HandleItemActivated(newItem);
return;
}
} while (newIndex != originalIndex);
} while (true);
}
#endregion