mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 10:02:59 +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 width = 400;
|
||||||
private const float sidebar_width = 60;
|
private const float sidebar_width = 60;
|
||||||
private const float sidebar_padding = 10;
|
|
||||||
|
|
||||||
private ScrollContainer scrollContainer;
|
private ScrollContainer scrollContainer;
|
||||||
private OptionsSidebar sidebar;
|
private OptionsSidebar sidebar;
|
||||||
@ -65,7 +64,7 @@ namespace osu.Game.Overlays
|
|||||||
ScrollDraggerAnchor = Anchor.TopLeft,
|
ScrollDraggerAnchor = Anchor.TopLeft,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
Width = width,
|
Width = width,
|
||||||
Padding = new MarginPadding { Left = sidebar_width },
|
Margin = new MarginPadding { Left = sidebar_width },
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new FlowContainer
|
new FlowContainer
|
||||||
|
Loading…
Reference in New Issue
Block a user