mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 00:52:57 +08:00
Use margin instead of padding so mouseDown events on the sidebar buttons don't interrupt scrolling.
This commit is contained in:
parent
f1395b8408
commit
04fa1f897e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user