Navigation Bar works as desired now

When scrolling down, the navigation bar moves towards the top and then
stays there.