I don't know when the beforeMove is being called, but it's after that error. If it were before, then I could maybe set the active class myself.
It would be nice if there was another method like updatedScroll that returns some object like:
{
pageTotal: 3,
currentPageIndex: 1, // the page you're currently on ( array key )
}
That should be basically all I need to make sure the right element has an active class. Unless there's other stuff the plugin needs to function properly?
I'm trying this plugin with React. now it seems that the 'active' class that onepagescroll writes, gets overwritten. So when I scroll:
I don't know when the
beforeMove
is being called, but it's after that error. If it were before, then I could maybe set theactive
class myself.It would be nice if there was another method like
updatedScroll
that returns some object like:That should be basically all I need to make sure the right element has an
active
class. Unless there's other stuff the plugin needs to function properly?