jQuery-One-Page-Nav
jQuery-One-Page-Nav copied to clipboard
Can't init current class when first enter a page
If I didn't set the current class on a nav item, this plugin should add it to the current nav item.
I found in code that when init() function invoked, there is a property named didScroll was set to false. And the options did not include this property so that can't be configure by user.
I have the same problem. When I load the page it does not start with the current element. How can I solve this?
You can change the source code set didScroll to true.
or you can trigger a fake scroll event to force the plugin to set the active section :
$(window).trigger('scroll.onePageNav');