From 1eebdf9029aaa2cc24962746785325acef1aac9a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 18 Sep 2023 10:44:12 +0800 Subject: [PATCH] :rotating_light: --- app/src/protyle/scroll/event.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/scroll/event.ts b/app/src/protyle/scroll/event.ts index c3ea57d71..a87ba6828 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";