Added handling for scrolling nav.