🎨 The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957

This commit is contained in:
Daniel 2024-03-29 21:42:40 +08:00
parent 24e929b654
commit e988f5373f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -71,12 +71,6 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
}
}
if targetNode == heading.Previous {
if previousHeading.HeadingLevel >= heading.HeadingLevel {
return
}
}
diffLevel := heading.HeadingLevel - previousHeading.HeadingLevel
heading.HeadingLevel = previousHeading.HeadingLevel