T
T
thehighhomie2015-09-30 15:37:02
JavaScript
thehighhomie, 2015-09-30 15:37:02

Active only fires on second click?

Why on the last element in the navigation, adding the active class works the second time?
Of course, I suspect that this is due to the fact that I still have onscroll handlers, but I can’t find an error, it’s not an option to find an error at all, as for me. If you remove the onscroll handler, then everything works, but then I will lose the feature that the client asks for, when scrolling to each skekia, the class in the navigation changes to the menu that is currently scrolled. Help someone who cares. https://jsfiddle.net/f1y8ezL2/3/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question