1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Use margin instead of padding so mouseDown events on the sidebar buttons don't interrupt scrolling.

This commit is contained in:
Dean Herbert 2016-11-09 12:32:38 +09:00
parent f1395b8408
commit 04fa1f897e

View File

@ -28,7 +28,6 @@ namespace osu.Game.Overlays
private const float width = 400;
private const float sidebar_width = 60;
private const float sidebar_padding = 10;
private ScrollContainer scrollContainer;
private OptionsSidebar sidebar;
@ -65,7 +64,7 @@ namespace osu.Game.Overlays
ScrollDraggerAnchor = Anchor.TopLeft,
RelativeSizeAxes = Axes.Y,
Width = width,
Padding = new MarginPadding { Left = sidebar_width },
Margin = new MarginPadding { Left = sidebar_width },
Children = new[]
{
new FlowContainer