🐛 使用块滚动条跳转到最后一个块时无法加载上面的块 https://github.com/siyuan-note/siyuan/issues/5291

This commit is contained in:
Liang Ding 2022-06-27 11:39:29 +08:00
parent 70104e126a
commit 0b967f4c1a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -657,7 +657,7 @@ func GetDoc(id string, index int, keyword string, mode int, size int) (blockCoun
}
func loadNodesByMode(node *ast.Node, inputIndex, mode, size int, isDoc, isHeading bool) (nodes []*ast.Node, eof bool) {
if 2 == mode { // 向下
if 0 == mode /* 仅当前 */ || 2 == mode /* 向下 */ {
next := node.Next
if ast.NodeHeading == node.Type && "1" == node.IALAttr("fold") {
// 标题展开时进行动态加载导致重复内容 https://github.com/siyuan-note/siyuan/issues/4671