1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Merge pull request #2402 from FreezyLemon/fix-button-kb-input

Make buttons only accept input when expanded
This commit is contained in:
Dean Herbert 2018-04-16 03:20:31 +09:00 committed by GitHub
commit af154e66a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit f155804739b8bf6e8e04cbdbadca88618d325a32
Subproject commit 7e8788e601b62577e51197a29e24f56eeeac0286

View File

@ -222,7 +222,7 @@ namespace osu.Game.Screens.Menu
boxHoverLayer.FadeOut(800, Easing.OutExpo);
}
public override bool HandleKeyboardInput => state != ButtonState.Exploded;
public override bool HandleKeyboardInput => state == ButtonState.Expanded;
public override bool HandleMouseInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f;
protected override void Update()