Improve logic of hiding active elements (hints, menus ect) by tapping background