Halve drag box padding

Allows the drag box borders to collapse in on themselves to a single
line if the drag selection has zero width or height.
This commit is contained in:
Bartłomiej Dach 2022-05-06 15:21:25 +02:00
parent fad1f727bb
commit 29a3ab7e7a
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -136,7 +136,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
? DrawWidth / ScreenSpaceDrawQuad.Width * 2
: DrawHeight / ScreenSpaceDrawQuad.Height * 2;
Padding = new MarginPadding(-lineThickness);
Padding = new MarginPadding(-lineThickness / 2);
InternalChildren = new Drawable[]
{