Skip to content

Commit ed03c86

Browse files
committed
🎨 fix #9520
1 parent 8609246 commit ed03c86

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/src/protyle/render/av/cell.ts

+7
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,14 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
385385
const blockElement = hasClosestBlock(cellElements[0]);
386386
let cellRect = cellElements[0].getBoundingClientRect();
387387
if (blockElement) {
388+
/// #if MOBILE
389+
const contentElement = hasClosestByClassName(blockElement, "protyle-content", true);
390+
if (contentElement) {
391+
contentElement.scrollTop = contentElement.scrollTop + cellRect.top - 110;
392+
}
393+
/// #else
388394
cellScrollIntoView(blockElement, cellRect);
395+
/// #endif
389396
}
390397
cellRect = cellElements[0].getBoundingClientRect();
391398
let html = "";

0 commit comments

Comments
 (0)