mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
fe00fb7ead
commit
fe827792fd
1 changed files with 2 additions and 4 deletions
|
|
@ -308,8 +308,7 @@ const dragSame = (protyle: IProtyle, sourceElements: Element[], targetElement: E
|
||||||
topSourceElement = getTopAloneElement(item);
|
topSourceElement = getTopAloneElement(item);
|
||||||
if (topSourceElement.isSameNode(item)) {
|
if (topSourceElement.isSameNode(item)) {
|
||||||
topSourceElement = undefined;
|
topSourceElement = undefined;
|
||||||
}
|
} else if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
|
||||||
if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
|
|
||||||
// * * 1 列表项拖拽到父级列表项下 https://ld246.com/article/1665448570858
|
// * * 1 列表项拖拽到父级列表项下 https://ld246.com/article/1665448570858
|
||||||
topSourceElement = targetElement;
|
topSourceElement = targetElement;
|
||||||
}
|
}
|
||||||
|
|
@ -384,8 +383,7 @@ const dragSame = (protyle: IProtyle, sourceElements: Element[], targetElement: E
|
||||||
topSourceElement = getTopAloneElement(item);
|
topSourceElement = getTopAloneElement(item);
|
||||||
if (topSourceElement.isSameNode(item)) {
|
if (topSourceElement.isSameNode(item)) {
|
||||||
topSourceElement = undefined;
|
topSourceElement = undefined;
|
||||||
}
|
} else if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
|
||||||
if (topSourceElement.contains(item) && topSourceElement.contains(targetElement)) {
|
|
||||||
// * * 1 列表项拖拽到父级列表项上 https://ld246.com/article/1665448570858
|
// * * 1 列表项拖拽到父级列表项上 https://ld246.com/article/1665448570858
|
||||||
topSourceElement = targetElement;
|
topSourceElement = targetElement;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue