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:
parent
ce689032c7
commit
1e3266a9d2
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user