reimplement tap to hide navbar