mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 14:27:25 +08:00
Fix unable to drag-scroll on collections right-click menu
This commit is contained in:
parent
4162d0babe
commit
e3205fce47
@ -26,9 +26,12 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
// Right mouse button is a special case where we allow actioning without dismissing the menu.
|
// 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).
|
// This is achieved by not calling `Clicked` (as done by the base implementation in OnClick).
|
||||||
if (IsActionable && e.Button == MouseButton.Right)
|
if (IsActionable && e.Button == MouseButton.Right)
|
||||||
|
{
|
||||||
Item.Action.Value?.Invoke();
|
Item.Action.Value?.Invoke();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private partial class ToggleTextContainer : TextContainer
|
private partial class ToggleTextContainer : TextContainer
|
||||||
|
Loading…
Reference in New Issue
Block a user