Contract sidebar on click

Also makes queueing of expand more correct.
This commit is contained in:
Dean Herbert
2017-07-13 16:55:48 +09:00
parent 939e167d6a
commit 2ff92ac25a
2 changed files with 49 additions and 8 deletions

View File

@ -96,7 +96,11 @@ namespace osu.Game.Overlays
new SidebarButton
{
Section = section,
Action = s => sectionsContainer.ScrollTo(s),
Action = s =>
{
sectionsContainer.ScrollTo(s);
sidebar.State = ExpandedState.Contracted;
},
}
).ToArray()
}