mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Handle scrolling in SectionsContainer.
This commit is contained in:
@ -112,7 +112,6 @@ namespace osu.Game.Overlays
|
||||
RelativeSizeAxes = Axes.Both
|
||||
}
|
||||
};
|
||||
sectionsContainer.ScrollContainer.ScrollbarVisible = false;
|
||||
Add(sectionsContainer);
|
||||
sectionsContainer.SelectedSection.ValueChanged += s =>
|
||||
{
|
||||
@ -135,7 +134,7 @@ namespace osu.Game.Overlays
|
||||
if (lastSection != s)
|
||||
{
|
||||
lastSection = s;
|
||||
sectionsContainer.ScrollContainer.ScrollIntoView(lastSection);
|
||||
sectionsContainer.ScrollToTop(lastSection);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user