Refactor code into UserTrackingScrollContainer

This commit is contained in:
Endrik Tombak
2020-12-22 17:36:44 +02:00
parent 668f89d8b2
commit 78c14fd696
5 changed files with 55 additions and 24 deletions

View File

@ -95,7 +95,7 @@ namespace osu.Game.Graphics.Containers
protected override Container<T> Content => scrollContentContainer;
private readonly OsuScrollContainer scrollContainer;
private readonly UserTrackingScrollContainer scrollContainer;
private readonly Container headerBackgroundContainer;
private readonly MarginPadding originalSectionsMargin;
private Drawable expandableHeader, fixedHeader, footer, headerBackground;
@ -139,7 +139,7 @@ namespace osu.Game.Graphics.Containers
public void ScrollToTop() => scrollContainer.ScrollTo(0);
[NotNull]
protected virtual OsuScrollContainer CreateScrollContainer() => new OsuScrollContainer();
protected virtual UserTrackingScrollContainer CreateScrollContainer() => new UserTrackingScrollContainer();
[NotNull]
protected virtual FlowContainer<T> CreateScrollContentContainer() =>