ChrisWojcik / single-page-nav

jQuery plugin that provides smooth scrolling and advanced navigation for single page websites.
http://chriswojcik.net/demos/single-page-nav/
161 stars 74 forks source link

Fix for first nav link not being made active again when returning to it #22

Open england9911 opened 8 years ago

england9911 commented 8 years ago

We found that when scrolling down to any new section, that when you returned to the first section (in this case labelled 'Home') then the first link in the nav was not set to have the 'active' class again. This would happen whether you manually scrolled or clicked nav links.

Subsequent sections all seemed to work as expected when scrolling or clicking between them. It was just the first section / nav link that didn't seem to work.

This tweak seems to fix this issue for us, perhaps it would be useful to others.