mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +08:00
Apply same fix in more places
This commit is contained in:
parent
74f05a5c4b
commit
1f0ad5cff2
@ -868,7 +868,7 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
var toDisplay = visibleItems.GetRange(displayedRange.first, displayedRange.last - displayedRange.first + 1);
|
||||
|
||||
foreach (var panel in Scroll.Children)
|
||||
foreach (var panel in Scroll)
|
||||
{
|
||||
Debug.Assert(panel.Item != null);
|
||||
|
||||
@ -1094,7 +1094,7 @@ namespace osu.Game.Screens.Select
|
||||
// to enter clamp-special-case mode where it animates completely differently to normal.
|
||||
float scrollChange = scrollTarget.Value - Scroll.Current;
|
||||
Scroll.ScrollTo(scrollTarget.Value, false);
|
||||
foreach (var i in Scroll.Children)
|
||||
foreach (var i in Scroll)
|
||||
i.Y += scrollChange;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user