An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5291
Vanessabb6bad6120b5
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex 03f2b3f285..1fc72bb10f 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -206,6 +206,7 @@ const setHTML = (options: { content: string, action?: string[] }, protyle: IProtif (!protyle.scroll.element.classList.contains("fn__none") &&protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "true" &&protyle.contentElement.scrollHeight > 0 && // 没有激活的页签 https://github.com/siyuan-note/siyuan/issues/5255+ !options.action.includes(Constants.CB_GET_FOCUSFIRST) &&protyle.contentElement.scrollHeight <= protyle.contentElement.clientHeight) {fetchPost("/api/filetree/getDoc", {id: protyle.wysiwyg.element.lastElementChild.getAttribute("data-node-id"),diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 405137c745..fa7eab8fb3 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -492,10 +492,11 @@ export class WYSIWYG {}});- // https://github.com/siyuan-note/siyuan/issues/4099+ let mousewheelTime = 0this.element.addEventListener("mousewheel", (event: WheelEvent) => {// https://ld246.com/article/1648865235549- if (event.deltaY < 0 && !protyle.scroll.element.classList.contains("fn__none") &&+ if (event.timeStamp - mousewheelTime > 6000 &&+ event.deltaY < 0 && !protyle.scroll.element.classList.contains("fn__none") &&protyle.contentElement.clientHeight === protyle.contentElement.scrollHeight &&protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") !== "true") {fetchPost("/api/filetree/getDoc", {@@ -506,10 +507,13 @@ export class WYSIWYG {}, getResponse => {onGet(getResponse, protyle, [Constants.CB_GET_BEFORE, Constants.CB_GET_UNCHANGEID]);});+ mousewheelTime = 0;}+ mousewheelTime = event.timeStamp;if (event.deltaX === 0) {return;}+ // https://github.com/siyuan-note/siyuan/issues/4099const tableElement = hasClosestByClassName(event.target as HTMLElement, "table");if (tableElement) {const tableSelectElement = tableElement.querySelector(".table__select") as HTMLElement;