bump 1.6.1

This commit is contained in:
qingwei.li 2017-01-10 23:48:49 +08:00
parent 90b490c9c1
commit a418096a29
2 changed files with 5 additions and 3 deletions

View File

@ -216,7 +216,7 @@ function scrollActiveSidebar () {
li.classList.add('active');
active = li;
!hoveredOverSidebar && active.scrollIntoView();
!hoveredOverSidebar && sticky.isSticky && active.scrollIntoView();
}
window.removeEventListener('scroll', highlight);
@ -293,8 +293,10 @@ function sticky () {
return (function () {
if (window.pageYOffset >= coverHeight || dom.classList.contains('hidden')) {
document.body.classList.add('sticky');
sticky.isSticky = true;
} else {
document.body.classList.remove('sticky');
sticky.isSticky = false;
}
})()
}

4
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long