Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14004

Vanessa048d6a36df7d
diff --git a/app/src/protyle/scroll/index.ts b/app/src/protyle/scroll/index.ts
index 8f48c5519e..f1dcd88a01 100644
--- a/app/src/protyle/scroll/index.ts
+++ b/app/src/protyle/scroll/index.ts
@@ -56,7 +56,7 @@ export class Scroll {
}
});
this.parentElement.addEventListener("mousewheel", (event: WheelEvent) => {
- if (event.deltaY !== 0) {
+ if (event.deltaY !== 0 && protyle.scroll.lastScrollTop !== -1) {
protyle.contentElement.scrollTop += event.deltaY;
}
}, {passive: true});