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
1 changed files with 2 additions and 2 deletions

View File

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