mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 22:03:18 +08:00
Merge pull request #26661 from frenzibyte/fix-mouse-blueprint
Fix blueprint container not handling right clicks correctly while moving a blueprint
This commit is contained in:
commit
f6fa965252
@ -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