also looking at this
fix(spa): repair client-side router and polish default theme
#71
9 files
+1037
-170
| @@ -234,6 +234,11 @@ function initPageTOC() { | ||
| 234 | 234 | }); |
| 235 | 235 | |
| 236 | 236 | // Listen to scroll events on the actual scrolling container |
| 237 | // Remove any prior listener first so SPA navigation doesn't stack duplicates | |
| 238 | if (scrollContainer.__bpTocScroll) { | |
| 239 | scrollContainer.removeEventListener('scroll', scrollContainer.__bpTocScroll); | |
| 240 | } | |
| 241 | scrollContainer.__bpTocScroll = onScroll; | |
| 237 | 242 | scrollContainer.addEventListener('scroll', onScroll); |
| 238 | 243 | |
| 239 | 244 | // Handle URL hash on page load |