mirror of https://github.com/ppy/osu
Apply same fix in more places
This commit is contained in:
parent
74f05a5c4b
commit
1f0ad5cff2
|
@ -868,7 +868,7 @@ protected override void Update()
|
||||||
{
|
{
|
||||||
var toDisplay = visibleItems.GetRange(displayedRange.first, displayedRange.last - displayedRange.first + 1);
|
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);
|
Debug.Assert(panel.Item != null);
|
||||||
|
|
||||||
|
@ -1094,7 +1094,7 @@ private void updateScrollPosition()
|
||||||
// to enter clamp-special-case mode where it animates completely differently to normal.
|
// to enter clamp-special-case mode where it animates completely differently to normal.
|
||||||
float scrollChange = scrollTarget.Value - Scroll.Current;
|
float scrollChange = scrollTarget.Value - Scroll.Current;
|
||||||
Scroll.ScrollTo(scrollTarget.Value, false);
|
Scroll.ScrollTo(scrollTarget.Value, false);
|
||||||
foreach (var i in Scroll.Children)
|
foreach (var i in Scroll)
|
||||||
i.Y += scrollChange;
|
i.Y += scrollChange;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue