bump 1.6.1

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

View file

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