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/15931

Vanessadfed7890add2
diff --git a/app/src/protyle/scroll/event.ts b/app/src/protyle/scroll/event.ts
index 78d73f1b28..936e015dfd 100644
--- a/app/src/protyle/scroll/event.ts
+++ b/app/src/protyle/scroll/event.ts
@@ -95,7 +95,7 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
} else if ((element.scrollTop > element.scrollHeight - element.clientHeight * 1.8) &&
protyle.wysiwyg.element.lastElementChild &&
protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "2") {
- if (element.scrollTop > 768 && element.scrollTop > protyle.scroll.lastScrollTop * 2) {
+ if (protyle.scroll.lastScrollTop > 768 && element.scrollTop > protyle.scroll.lastScrollTop * 2) {
// 使用鼠标拖拽滚动条时导致加载需进行矫正
element.scrollTop = protyle.scroll.lastScrollTop;
return;