This commit is contained in:
Vanessa 2023-12-31 17:02:00 +08:00
parent ac269b4e1b
commit 2787a239ee

View file

@ -425,7 +425,7 @@ const focusElementById = (protyle: IProtyle, action: string[], scrollAttr?: IScr
protyle.observer.observe(protyle.wysiwyg.element);
}, 1000 * 3);
if (focusElement.isSameNode(protyle.wysiwyg.element.firstElementChild)) {
if (focusElement.isSameNode(protyle.wysiwyg.element.firstElementChild) && !hasScrollTop) {
protyle.observerLoad.disconnect();
}
};