Fixed bug in scrollspy

This commit is contained in:
squidfunk
2016-09-23 12:39:47 +02:00
parent 9338045887
commit 2fd1740f3d
5 changed files with 6 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ document.addEventListener('DOMContentLoaded', function() {
var toc = new Sidebar('.md-sidebar--secondary');
toc.listen();
var spy = new ScrollSpy('.md-nav--toc .md-nav__link');
var spy = new ScrollSpy('.md-sidebar--secondary .md-nav--secondary .md-nav__link');
spy.listen();
window.addEventListener('resize', handler);