bump 1.6.1
This commit is contained in:
parent
90b490c9c1
commit
a418096a29
2 changed files with 5 additions and 3 deletions
|
|
@ -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
4
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue