Skip to content

Commit

Permalink
Fix context menus sometimes not being clickable at song select
Browse files Browse the repository at this point in the history
Closes #21602.
  • Loading branch information
peppy committed Aug 12, 2024
1 parent 92bd123 commit b567ab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions osu.Game/Screens/Select/BeatmapCarousel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using osu.Game.Configuration;
using osu.Game.Database;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Cursor;
using osu.Game.Input.Bindings;
using osu.Game.Screens.Select.Carousel;
using osuTK;
Expand Down Expand Up @@ -209,7 +208,7 @@ private void loadBeatmapSets(IEnumerable<BeatmapSetInfo> beatmapSets)
public BeatmapCarousel()
{
root = new CarouselRoot(this);
InternalChild = new OsuContextMenuContainer
InternalChild = new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding
Expand Down
3 changes: 2 additions & 1 deletion osu.Game/Screens/Select/SongSelect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Cursor;
using osu.Game.Graphics.UserInterface;
using osu.Game.Input.Bindings;
using osu.Game.Overlays;
Expand Down Expand Up @@ -1081,7 +1082,7 @@ public VerticalMaskingContainer()
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
Width = panel_overflow; // avoid horizontal masking so the panels don't clip when screen stack is pushed.
InternalChild = Content = new Container
InternalChild = Content = new OsuContextMenuContainer
{
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.Centre,
Expand Down

0 comments on commit b567ab2

Please sign in to comment.