From 0dd0a84312e224bb2cb5396cdc479e2b04688000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Thu, 2 Nov 2023 22:26:52 +0100 Subject: [PATCH] Move player touch handler to `SubmittingPlayer` Shouldn't be there in `ReplayPlayer`. --- osu.Game/Screens/Play/Player.cs | 1 - osu.Game/Screens/Play/SubmittingPlayer.cs | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index a67e16912d..8c7fc551ba 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -285,7 +285,6 @@ namespace osu.Game.Screens.Play fadeOut(true); }, }, - new PlayerTouchInputHandler() }); if (cancellationToken.IsCancellationRequested) diff --git a/osu.Game/Screens/Play/SubmittingPlayer.cs b/osu.Game/Screens/Play/SubmittingPlayer.cs index a75546f835..c34902aeb8 100644 --- a/osu.Game/Screens/Play/SubmittingPlayer.cs +++ b/osu.Game/Screens/Play/SubmittingPlayer.cs @@ -44,6 +44,12 @@ namespace osu.Game.Screens.Play { } + [BackgroundDependencyLoader] + private void load() + { + AddInternal(new PlayerTouchInputHandler()); + } + protected override void LoadAsyncComplete() { base.LoadAsyncComplete();