1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 11:12:59 +08:00

wrap HitObjectContainer in BufferedContainer

This commit is contained in:
LastExceed 2020-07-12 13:57:06 +02:00
parent 57cfdb82ce
commit 0e49bf127b

View File

@ -4,6 +4,7 @@
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Bindables; using osu.Framework.Bindables;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Mania.Skinning; using osu.Game.Rulesets.Mania.Skinning;
using osu.Game.Rulesets.UI; using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.UI.Scrolling; using osu.Game.Rulesets.UI.Scrolling;
@ -17,9 +18,10 @@ namespace osu.Game.Rulesets.Mania.UI.Components
public HitObjectArea(HitObjectContainer hitObjectContainer) public HitObjectArea(HitObjectContainer hitObjectContainer)
{ {
InternalChildren = new[] InternalChild = new BufferedContainer
{ {
hitObjectContainer, RelativeSizeAxes = Axes.Both,
Child = hitObjectContainer
}; };
} }