1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +08:00

Reduce allocation overhead in BeatmapCarousel

This commit is contained in:
Andrei Zavatski 2024-01-22 03:12:23 +03:00
parent b588715d21
commit cec4f670d1

View File

@ -899,7 +899,7 @@ namespace osu.Game.Screens.Select
// Update externally controlled state of currently visible items (e.g. x-offset and opacity).
// This is a per-frame update on all drawable panels.
foreach (DrawableCarouselItem item in Scroll.Children)
foreach (DrawableCarouselItem item in Scroll.ScrollContent)
{
updateItem(item);