Use MouseUp instead of MouseDown for now

This commit is contained in:
Dean Herbert 2018-09-25 10:35:00 +09:00
parent 991d85a9f3
commit e74fd042aa
2 changed files with 4 additions and 6 deletions

View File

@ -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);

View File

@ -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;