1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 01:47:33 +08:00

Fix sliderbar lines lagging behind nub.

This commit is contained in:
Dean Herbert 2017-02-04 20:55:26 +09:00
parent ce689032c7
commit 1e3266a9d2

View File

@ -114,9 +114,9 @@ namespace osu.Game.Graphics.UserInterface
return base.OnDrag(state); return base.OnDrag(state);
} }
protected override void Update() protected override void UpdateAfterChildren()
{ {
base.Update(); base.UpdateAfterChildren();
leftBox.Scale = new Vector2(MathHelper.Clamp( leftBox.Scale = new Vector2(MathHelper.Clamp(
nub.DrawPosition.X - nub.DrawWidth / 2, 0, DrawWidth), 1); nub.DrawPosition.X - nub.DrawWidth / 2, 0, DrawWidth), 1);
rightBox.Scale = new Vector2(MathHelper.Clamp( rightBox.Scale = new Vector2(MathHelper.Clamp(