From ca98c1f0862e5ba97560cebec175a87c4fa513a5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 7 Mar 2023 18:42:13 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/7580 --- app/src/protyle/wysiwyg/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index b90df8cf4..5a2e315b7 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -596,7 +596,9 @@ export class WYSIWYG { if (!startFirstElement) { startFirstElement = firstElement; } - } else if (!firstBlockElement) { + } else if (!firstBlockElement && + // https://github.com/siyuan-note/siyuan/issues/7580 + moveEvent.clientY < protyle.wysiwyg.element.lastElementChild.getBoundingClientRect().bottom) { firstBlockElement = protyle.wysiwyg.element.firstElementChild as HTMLElement; } let selectElements: Element[] = [];