mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Avoid scheduling focus operation when not required
This commit is contained in:
@ -25,7 +25,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
if (!allowImmediateFocus)
|
if (!allowImmediateFocus)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Schedule(() => GetContainingInputManager().ChangeFocus(this));
|
Scheduler.Add(() => GetContainingInputManager().ChangeFocus(this), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool HoldFocus
|
public bool HoldFocus
|
||||||
|
Reference in New Issue
Block a user