mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
This commit is contained in:
parent
d33c9d736b
commit
e41adc4e72
1 changed files with 4 additions and 2 deletions
|
|
@ -52,8 +52,10 @@ export const scrollCenter = (protyle: IProtyle, nodeElement?: Element, top = fal
|
|||
return;
|
||||
}
|
||||
// undo 时禁止数据库滚动
|
||||
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)) {
|
||||
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
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
// 撤销时 br 插入删除会导致 rang 被修改 https://github.com/siyuan-note/siyuan/issues/12679
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue