Ensure hold for menu button fades out if the cursor is never moved

Closes https://github.com/ppy/osu/discussions/16669.
This commit is contained in:
Dean Herbert
2022-01-28 14:48:34 +09:00
parent f32d56e213
commit 28c8e07e3f
2 changed files with 11 additions and 1 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)
{