Bug with touch buttons in the game menu

Hey. I have such a problem. There is an “Exit” button, when I click on it, a window with confirmation of the exit from the game opens. The problem is that through this window I can click on other buttons from the menu. How to fix it?