mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
fix: 动态加载时编辑器抖动 (#13983)
fix https://github.com/siyuan-note/siyuan/issues/13913 fix https://github.com/siyuan-note/siyuan/issues/10362 fix https://github.com/siyuan-note/siyuan/issues/6361
This commit is contained in:
parent
586908b316
commit
8018d54f8a
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
|
|||
if (element.scrollTop < element.clientHeight &&
|
||||
protyle.wysiwyg.element.firstElementChild.getAttribute("data-eof") !== "1") {
|
||||
// 禁用滚动时会产生抖动 https://ld246.com/article/1666717094418
|
||||
protyle.contentElement.style.width = (protyle.contentElement.clientWidth) + "px";
|
||||
protyle.contentElement.style.width = (protyle.contentElement.offsetWidth) + "px";
|
||||
protyle.contentElement.style.overflow = "hidden";
|
||||
protyle.wysiwyg.element.setAttribute("data-top", element.scrollTop.toString());
|
||||
fetchPost("/api/filetree/getDoc", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue