I am using http://jsfiddle.net/mekwall/up4nu/ for my scrolling on a one pager. How would I deactivate the current marking when a menu item is clicked? I want to keep it on scroll. But when I am on the first item and click the fourth one, I just want the fourth one to mark current, with no marking “sliding” through second and third item.
I also tried the onePageNav, but it breaks if I have a subpage that doesn’t have content (section with id) on the landing page.
This should work 🙂 I added a noScrollAction variable. I set it before the scrolling animation starts and disable it when it’s ended. But the window scroll still fires after the animation is over (haven’t figured out why yet). So I put an extra delay on it. And set the active class for the right anchor.