mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Outline drag function is abnormal https://github.com/siyuan-note/siyuan/issues/15909
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
c56297ff7f
commit
1ce7f2c9b6
1 changed files with 3 additions and 3 deletions
|
|
@ -90,9 +90,9 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
|
|||
}
|
||||
|
||||
for _, h := range headingChildren {
|
||||
if h.ID == targetNode.ID {
|
||||
// 目标节点是当前标题的子节点,不需要移动
|
||||
return
|
||||
if h.ID == targetNode.ID { // 目标节点是当前标题的子节点
|
||||
// 尝试重新计算目标节点:使用当前标题的前一个节点
|
||||
targetNode = heading.Previous
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue