From e41adc4e728d8de02e1a4f3d4442e5737d24ec27 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 18 Jun 2025 08:56:11 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10414 --- app/src/util/highlightById.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts index 31953d74d..18869077f 100644 --- a/app/src/util/highlightById.ts +++ b/app/src/util/highlightById.ts @@ -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