This commit is contained in:
Vanessa 2024-01-31 10:25:00 +08:00
parent 858d1f3627
commit 24ee5d14be

View File

@ -44,7 +44,7 @@ export const scrollCenter = (protyle: IProtyle, nodeElement?: Element, top = fal
if (blockElement) { if (blockElement) {
// undo 时禁止数据库滚动 // undo 时禁止数据库滚动
if (blockElement.classList.contains("av") && blockElement.dataset.render === "true" && if (blockElement.classList.contains("av") && blockElement.dataset.render === "true" &&
(blockElement.querySelector(".av__row--header").getAttribute("style").indexOf("transform") > -1 || blockElement.querySelector(".av__row--footer").getAttribute("style").indexOf("transform") > -1)) { (blockElement.querySelector(".av__row--header").getAttribute("style")?.indexOf("transform") > -1 || blockElement.querySelector(".av__row--footer").getAttribute("style")?.indexOf("transform") > -1)) {
return; return;
} }
const editorElement = protyle.contentElement; const editorElement = protyle.contentElement;