diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 566553ab9..b8dd2439b 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -877,7 +877,11 @@ export class WYSIWYG { let firstBlockElement = hasClosestBlock(firstElement); if (moveEvent.clientY > y) { if (!startFirstElement) { - startFirstElement = firstElement; + // 向上选择导致滚动条滚动到顶部再向下选择至 > y 时,firstBlockElement 为 undefined https://ld246.com/article/1705233964097 + if (!firstBlockElement) { + firstBlockElement = protyle.wysiwyg.element.firstElementChild as HTMLElement; + } + startFirstElement = firstBlockElement; } } else if (!firstBlockElement && // https://github.com/siyuan-note/siyuan/issues/7580