Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拖拽调整节点顺序,部分位置无法吸附上去 #537

Closed
soom-lupulus opened this issue Nov 27, 2023 · 2 comments
Closed

拖拽调整节点顺序,部分位置无法吸附上去 #537

soom-lupulus opened this issue Nov 27, 2023 · 2 comments

Comments

@soom-lupulus
Copy link

父节点下有许多子节点,拖动其中一个子节点到最后的位置,此时会吸附到父节点下面的那个同级节点上

这样就无法把其中一个子节点调整到最后的位置。

看了下源码,是不断的更新最近的节点,但是最近的不一定是想吸附连上去的

@hizzgdev
Copy link
Owner

你可以先确认一下你使用的是哪个版本。

在 0.7.5 之前,吸附的逻辑是查找最近的节点,
在 0.7.5 版本时节点吸附的逻辑进行了优化,会优先吸附到“重叠”节点的父节点上。

draggable-node

@hizzgdev
Copy link
Owner

转到 Discussion 区了哈。

Repository owner locked and limited conversation to collaborators Nov 28, 2023
@hizzgdev hizzgdev converted this issue into discussion #538 Nov 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants