I'm trying to build a side navigation, whereby the currently active section (this is the trigger) adds a class to the corresponding navigation element on the left. My callbacks are working on scroll down the page, but on the way back up, nothing happens. I've got scrub set to true & once set to false and can't work out why it's not working on scroll up. Is there a better way to go abut implementing this, or am I missing something basic about how this should work.
Edit to add - the pen is working on codepen, but not in this preview window.