Add comment explaining why origin is flipped

This commit is contained in:
Dean Herbert 2021-05-20 01:59:30 +09:00
parent 00ed699340
commit 22337e0fc7
1 changed files with 2 additions and 1 deletions

View File

@ -93,8 +93,9 @@ public override Drawable GetDrawableComponent(ISkinComponent component)
if (hitError2 != null) if (hitError2 != null)
{ {
hitError2.Anchor = Anchor.CentreRight; hitError2.Anchor = Anchor.CentreRight;
hitError2.Origin = Anchor.CentreLeft;
hitError2.Scale = new Vector2(-1, 1); hitError2.Scale = new Vector2(-1, 1);
// origin flipped to match scale above.
hitError2.Origin = Anchor.CentreLeft;
} }
} }
}) })