mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 00:50:56 +08:00
This commit is contained in:
parent
860924656d
commit
ed03c86f5c
@ -385,7 +385,14 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
|
|||||||
const blockElement = hasClosestBlock(cellElements[0]);
|
const blockElement = hasClosestBlock(cellElements[0]);
|
||||||
let cellRect = cellElements[0].getBoundingClientRect();
|
let cellRect = cellElements[0].getBoundingClientRect();
|
||||||
if (blockElement) {
|
if (blockElement) {
|
||||||
|
/// #if MOBILE
|
||||||
|
const contentElement = hasClosestByClassName(blockElement, "protyle-content", true);
|
||||||
|
if (contentElement) {
|
||||||
|
contentElement.scrollTop = contentElement.scrollTop + cellRect.top - 110;
|
||||||
|
}
|
||||||
|
/// #else
|
||||||
cellScrollIntoView(blockElement, cellRect);
|
cellScrollIntoView(blockElement, cellRect);
|
||||||
|
/// #endif
|
||||||
}
|
}
|
||||||
cellRect = cellElements[0].getBoundingClientRect();
|
cellRect = cellElements[0].getBoundingClientRect();
|
||||||
let html = "";
|
let html = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user