Apply same fix in more places

This commit is contained in:
Dean Herbert 2024-01-22 15:56:16 +09:00
parent 74f05a5c4b
commit 1f0ad5cff2
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -868,7 +868,7 @@ protected override void Update()
{
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 @@ private void updateScrollPosition()
// 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;
}