In browsers such as Safari and Chrome for Mac, when you try to scroll up when at the beginning of a page, you are still able to scroll up a little bit, but with resistance, and the page bounces back when you let go.
I have a navbar going across the top of my page. When the user scrolls up past the top of the page, the navbar moves down with the rest of the page, as in this demo video. How can I make the navbar stay at the top of my page even during this scrolling?