edemaine / coauthor

Coauthor supercollaboration/discussion forum
MIT License
249 stars 34 forks source link

scrollspy is broken #597

Closed edemaine closed 2 years ago

edemaine commented 2 years ago

Since we changed hrefs for table-of-contents links, no scrollspy packages work. Planning to write a new fast-scrollspy to work around this, while also speeding things up (logarithmic time for scroll, though linear when TOC updates) and highlighting entire range of what's on screen (different color from parents) instead of just one item.

Actually, we don't need scrollspy anymore; IntersectionObserver is enough, making this really easy!

Related: #552