From ed03c86f5c74cea35d764eafecdefbd4ea9f6052 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 27 Oct 2023 00:18:30 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9520 --- app/src/protyle/render/av/cell.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 268b6cfd3..3936b983d 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -385,7 +385,14 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type const blockElement = hasClosestBlock(cellElements[0]); let cellRect = cellElements[0].getBoundingClientRect(); if (blockElement) { + /// #if MOBILE + const contentElement = hasClosestByClassName(blockElement, "protyle-content", true); + if (contentElement) { + contentElement.scrollTop = contentElement.scrollTop + cellRect.top - 110; + } + /// #else cellScrollIntoView(blockElement, cellRect); + /// #endif } cellRect = cellElements[0].getBoundingClientRect(); let html = "";