From e8eef426a47e84bf888bdd92e23852dcb70e51d7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 13 May 2024 23:41:44 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11372 --- app/src/mobile/dock/MobileOutline.ts | 2 +- app/src/protyle/wysiwyg/index.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/mobile/dock/MobileOutline.ts b/app/src/mobile/dock/MobileOutline.ts index b57da58da..edb347be9 100644 --- a/app/src/mobile/dock/MobileOutline.ts +++ b/app/src/mobile/dock/MobileOutline.ts @@ -133,7 +133,7 @@ export class MobileOutline { } if (currentElement) { currentElement.classList.add("b3-list-item--focus"); - this.element.scrollTop = currentElement.offsetTop - this.element.clientHeight / 2 - 30; + this.tree.element.scrollTop = currentElement.offsetTop - this.element.clientHeight / 2 - 30; } } diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 3570f7e5d..960e61b5b 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -229,6 +229,10 @@ export class WYSIWYG { } }); } + /// #else + if (protyle.disabled) { + protyle.toolbar.range = getEditorRange(nodeElement); + } /// #endif }