mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Use MouseUp instead of MouseDown for now
This commit is contained in:
parent
991d85a9f3
commit
e74fd042aa
@ -155,9 +155,9 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
updateWinConditions();
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => args.Button == MouseButton.Left;
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => editorInfo.EditingEnabled;
|
||||
|
||||
protected override bool OnDragStart(InputState state) => true;
|
||||
protected override bool OnDragStart(InputState state) => editorInfo.EditingEnabled;
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
@ -183,9 +183,6 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
{
|
||||
if (base.OnDrag(state)) return true;
|
||||
|
||||
if (!editorInfo.EditingEnabled)
|
||||
return false;
|
||||
|
||||
Selected = true;
|
||||
this.MoveToOffset(state.Mouse.Delta);
|
||||
|
||||
|
@ -126,7 +126,8 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
}, true);
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
//TODO: use OnClick instead once we have per-button clicks.
|
||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
||||
{
|
||||
if (Team == null || editorInfo.EditingEnabled) return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user