Skip to content

Commit

Permalink
Fix unable to drag-scroll on collections right-click menu
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Jun 1, 2024
1 parent 4162d0b commit e3205fc
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 e3205fc

Please sign in to comment.