mirror of
https://github.com/osukey/osukey.git
synced 2025-06-20 02:38:04 +09:00
Ensure changes are only applied when we are the current screen
This commit is contained in:
parent
fcb197f7b6
commit
9ec8f130a6
@ -378,6 +378,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private void updateBackgroundElements()
|
private void updateBackgroundElements()
|
||||||
{
|
{
|
||||||
|
if (!IsCurrentScreen) return;
|
||||||
|
|
||||||
const float duration = 800;
|
const float duration = 800;
|
||||||
|
|
||||||
var opacity = 1 - (float)dimLevel;
|
var opacity = 1 - (float)dimLevel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user