1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 05:47:20 +08:00

Don't cache ConfineMouseTracker

This commit is contained in:
Shane Woolcock 2020-10-07 16:15:32 +10:30
parent 485bd962c7
commit d1ec380692

View File

@ -549,7 +549,6 @@ namespace osu.Game
BackButton.Receptor receptor;
dependencies.CacheAs(idleTracker = new GameIdleTracker(6000));
dependencies.Cache(confineMouseTracker = new ConfineMouseTracker());
AddRange(new Drawable[]
{
@ -586,7 +585,7 @@ namespace osu.Game
leftFloatingOverlayContent = new Container { RelativeSizeAxes = Axes.Both },
topMostOverlayContent = new Container { RelativeSizeAxes = Axes.Both },
idleTracker,
confineMouseTracker
confineMouseTracker = new ConfineMouseTracker()
});
ScreenStack.ScreenPushed += screenPushed;