diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index 0fc24cd5e..5a301cd28 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -1407,10 +1407,16 @@ class FreeplayState extends MusicBeatSubState var allowPicoBulletsVibration:Bool = false; + var backTransitioning:Bool = false; + override function update(elapsed:Float):Void { super.update(elapsed); + #if FEATURE_TOUCH_CONTROLS + if (backButton != null && !backTransitioning) backButton.active = !busy; + #end + if (charSelectHint != null) { hintTimer += elapsed * 2; @@ -1936,6 +1942,7 @@ class FreeplayState extends MusicBeatSubState function goBack():Void { if (busy) return; + backTransitioning = true; busy = true; FlxTween.globalManager.clear(); FlxTimer.globalManager.clear();