All layers and all objects register touch events, regardless of visibility.
You need to add another condition to your touch events checking if the layer is visible. Another common solution is to move touch events into several event groups, which you can activate/deactivate as needed. For example, if you have a menu on a separate layer, when menu is not visible you deactivate "Menu Controls" group and activate "Player Controls". When you need to display the menu, you activate "Menu Controls" and deactivate "Player Controls".