Skip to content

Commit

Permalink
🐞 fix: 修复目录置顶后无法退出 #106
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Nov 14, 2023
1 parent 06fd47a commit a33eb88
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/hexo-theme-async-ts/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function InitScroll() {
if (sidebar) {
sidebar.classList[sidebarFun]('fixed');
setSidebarWidth();
}
}

banner && (banner.style.transform = `matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, ${Math.min(scrollTop / 3, 100)}, 0, 1)`);

Expand All @@ -175,9 +175,9 @@ export function InitScroll() {
};

const observer = new MutationObserver(() => {
setSidebarWidth()
setSidebarWidth();
});

const init = () => {
const sections = utils.qa('.trm-scroll-animation');
sections.forEach(element => {
Expand Down Expand Up @@ -289,7 +289,8 @@ export function InitToc() {
isDown = false;
document.onmousemove = null;
document.onmouseup = null;
postToc.style.opacity = 'unset';
postToc.style.removeProperty('opacity');
// postToc.style.opacity = 'unset';
};
});

Expand Down

0 comments on commit a33eb88

Please sign in to comment.