mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
🎨
This commit is contained in:
parent
858d1f3627
commit
24ee5d14be
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user