mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 09:23:06 +08:00
Fix multiple cursors appearing
This commit is contained in:
parent
c79d187a89
commit
9588944048
@ -35,12 +35,16 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
{
|
||||
base.Show();
|
||||
clickToResumeCursor.ShowAt(GameplayCursor.ActiveCursor.Position);
|
||||
Add(localCursorContainer = new GameplayCursorContainer());
|
||||
|
||||
if (localCursorContainer == null)
|
||||
Add(localCursorContainer = new GameplayCursorContainer());
|
||||
}
|
||||
|
||||
public override void Hide()
|
||||
{
|
||||
localCursorContainer.Expire();
|
||||
localCursorContainer?.Expire();
|
||||
localCursorContainer = null;
|
||||
|
||||
base.Hide();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user