Skip to content

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

:rotating_light:

Vanessa1eebdf9029aa
diff --git a/app/src/protyle/scroll/event.ts b/app/src/protyle/scroll/event.ts
index c3ea57d714..a87ba6828c 100644
--- a/app/src/protyle/scroll/event.ts
+++ b/app/src/protyle/scroll/event.ts
@@ -63,7 +63,8 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
const targetElement = document.elementFromPoint(elementRect.left + elementRect.width / 2, elementRect.top + 10);
const blockElement = hasClosestBlock(targetElement);
if (!blockElement) {
- if (protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") === "1" &&
+ if ((protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") === "1" ||
+ protyle.wysiwyg.element.firstElementChild.getAttribute("data-node-index") === "0") &&
(hasClosestByClassName(targetElement, "protyle-background") || hasClosestByClassName(targetElement, "protyle-title"))) {
const inputElement = protyle.scroll.element.querySelector(".b3-slider") as HTMLInputElement;
inputElement.value = "1";