Fix Navbar will not hide completely when scroll direction changed