Merge pull request #16678 from peppy/hold-for-menu-always-fade

Ensure hold for menu button fades out if the cursor is never moved
This commit is contained in:
Dan Balasescu
2022-01-28 15:55:41 +09:00
committed by GitHub
2 changed files with 33 additions and 15 deletions

View File

@ -80,7 +80,7 @@ namespace osu.Game.Screens.Play.HUD
base.LoadComplete();
}
private float positionalAdjust;
private float positionalAdjust = 1; // Start at 1 to handle the case where a user never send positional input.
protected override bool OnMouseMove(MouseMoveEvent e)
{