Skip to content

Commit

Permalink
Schedule resume operation by one frame to ensure the triggered key do…
Browse files Browse the repository at this point in the history
…wn event does not cause a gameplay press
  • Loading branch information
frenzibyte committed Jul 19, 2024
1 parent d7651ef commit 4f6c7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Osu/UI/OsuResumeOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public bool OnPressed(KeyBindingPressEvent<OsuAction> e)

scaleTransitionContainer.ScaleTo(2, TRANSITION_TIME, Easing.OutQuint);

ResumeRequested?.Invoke();
Schedule(() => ResumeRequested?.Invoke());
return true;
}

Expand Down

0 comments on commit 4f6c7fe

Please sign in to comment.