diff --git a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Melody/MelodyView+XylophoneView.swift b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Melody/MelodyView+XylophoneView.swift index b8c9fe41d9..1928560d44 100644 --- a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Melody/MelodyView+XylophoneView.swift +++ b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Melody/MelodyView+XylophoneView.swift @@ -60,6 +60,15 @@ public extension MelodyView { .blur(radius: self.viewModel.showModal ? 10 : 0) if self.viewModel.showModal { + Color.clear + .frame(maxWidth: .infinity, maxHeight: .infinity) + .contentShape(Rectangle()) + .onTapGesture { + self.viewModel.showModal = false + self.viewModel.midiPlayer.stop() + self.viewModel.startActivity() + } + PlayerButton(showModal: self.$viewModel.showModal) { self.viewModel.playMIDIRecording() }