This commit is contained in:
Vanessa 2022-08-26 22:12:45 +08:00
parent f6cf6b1d2b
commit 6b34eb325f

View file

@ -119,7 +119,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]
unScroll: (scrollObj && scrollObj.focusId) ? true : false,
}, protyle);
if (scrollObj && protyle.options.mode === "wysiwyg") {
if (scrollObj && protyle.options.mode !== "preview") {
restoreScroll(protyle, scrollObj);
}
const loadingElement = protyle.element.querySelector(".fn__loading");