Closed
Description
点击动态滚动条之后的瞬间向上滚动文档,没有正常动态加载
关联 #5630
会卡出标题和题头图:
video.webm
一个可能的解决方案:
点击动态滚动条之后的瞬间禁止文档滚动,等到滚动不会有问题了才允许滚动
以及在 onGet 执行完之后再修改 style:
fetchPost("/api/filetree/getDoc", {
id: protyle.wysiwyg.element.firstElementChild.getAttribute("data-node-id"),
mode: 1,
size: window.siyuan.config.editor.dynamicLoadBlocks,
}, getResponse => {
onGet({
data: getResponse,
protyle,
action: [Constants.CB_GET_BEFORE, Constants.CB_GET_UNCHANGEID],
});
// TODO 在 onGet 执行完之后再修改 style
protyle.contentElement.style.overflow = "";
protyle.contentElement.style.width = "";
});
- fix: 鼠标在 .protyle-scroll 上无法滚动文档 #14006 在滚动条上滚动更容易复现
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
🎨 #14004
[-]点击动态滚动条之后的瞬间向上滚动文档,没有正常动态加载[/-][+]Improve dynamic loading[/+]TCOTC commentedon Feb 19, 2025
感觉区别不大,还是会卡出标题和题头图:
video.webm
🎨 #14004
TCOTC commentedon Feb 20, 2025
在滚动条上滚动的话能卡出来一瞬间:
video.webm
Vanessa219 commentedon Feb 21, 2025
这个不能阻止,否则正常滚动就会卡顿。
🎨 siyuan-note#14004
🎨 siyuan-note#14004