mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
Fix blueprint container not handling right clicks correctly while moveing an element
This commit is contained in:
parent
b588715d21
commit
2bd9cd5d34
@ -114,7 +114,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
protected override bool OnMouseDown(MouseDownEvent e)
|
||||
{
|
||||
bool selectionPerformed = performMouseDownActions(e);
|
||||
bool movementPossible = prepareSelectionMovement();
|
||||
bool movementPossible = prepareSelectionMovement(e);
|
||||
|
||||
// check if selection has occurred
|
||||
if (selectionPerformed)
|
||||
@ -536,9 +536,13 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// <summary>
|
||||
/// Attempts to begin the movement of any selected blueprints.
|
||||
/// </summary>
|
||||
/// <param name="e">The <see cref="MouseDownEvent"/> defining the beginning of a movement.</param>
|
||||
/// <returns>Whether a movement is possible.</returns>
|
||||
private bool prepareSelectionMovement()
|
||||
private bool prepareSelectionMovement(MouseDownEvent e)
|
||||
{
|
||||
if (e.Button == MouseButton.Right)
|
||||
return false;
|
||||
|
||||
if (!SelectionHandler.SelectedBlueprints.Any())
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user