Skip to content

Commit

Permalink
Merge pull request ppy#28371 from smoogipoo/fix-collections-menu-drag
Browse files Browse the repository at this point in the history
Fix unable to drag-scroll on collections right-click menu
  • Loading branch information
peppy authored Jun 1, 2024
2 parents 4162d0b + e3205fc commit f1689d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Game/Graphics/UserInterface/DrawableStatefulMenuItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ protected override bool OnMouseDown(MouseDownEvent e)
// Right mouse button is a special case where we allow actioning without dismissing the menu.
// This is achieved by not calling `Clicked` (as done by the base implementation in OnClick).
if (IsActionable && e.Button == MouseButton.Right)
{
Item.Action.Value?.Invoke();
return true;
}

return true;
return false;
}

private partial class ToggleTextContainer : TextContainer
Expand Down

0 comments on commit f1689d5

Please sign in to comment.