mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 13:22:57 +08:00
Ensure overlay is always shown when movement is detected on mouse or keyboard
This commit is contained in:
parent
888d8b2817
commit
2709a4d398
@ -131,6 +131,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
|
||||
protected override bool OnMouseMove(MouseMoveEvent e)
|
||||
{
|
||||
Show();
|
||||
|
||||
TouchCatchAction touchCatchAction = getTouchCatchActionFromInput(e.ScreenSpaceMousePosition);
|
||||
|
||||
// Loop through the buttons to avoid keeping a button pressed if both mouse buttons are pressed.
|
||||
@ -143,6 +145,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
|
||||
protected override void OnTouchMove(TouchMoveEvent e)
|
||||
{
|
||||
Show();
|
||||
|
||||
trackedActions[e.Touch.Source] = getTouchCatchActionFromInput(e.ScreenSpaceTouch.Position);
|
||||
calculateActiveKeys();
|
||||
|
||||
@ -186,8 +190,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
if (catchAction == TouchCatchAction.None)
|
||||
return false;
|
||||
|
||||
Show();
|
||||
|
||||
trackedActions[source] = catchAction;
|
||||
|
||||
calculateActiveKeys();
|
||||
|
Loading…
Reference in New Issue
Block a user