Scroll Into View Example - Question

Thanks for this template. Just what I need currently. Can this be tweaked so the tabs change as the position of the section is assumed? Currently, the sections will scroll very nicely into view as the tabs are clicked but not vice versa…
I suppose I can answer that myself. “Visible in Viewport” is my friend.

That doesn’t work because two headers might be visible at the same time. So, I need to be able to tell the header to change the state of the other widget when it is near the top of the screen. That would be scripting, right?

well if the sections have a fixed height, you might use a scroll-event:

if not I guess some scripting is necessary