Skip to content
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

Refactor node library drag and drop #617

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

huchenlei
Copy link
Member

Previously the drag and drop listener was attached by mutation observer in TreePlus, which is invonvenient, as the mutation of the tree can happen in various format. For example, the bookmarked nodes were not made draggable by the mutation observer method before.

After this refactor, the draggable functionality is attached with lifecycle hook of NodeTreeLeaf component, which is much more manageable.

@huchenlei huchenlei merged commit bff1dc9 into Comfy-Org:main Aug 24, 2024
4 checks passed
@huchenlei huchenlei deleted the drag_refactor branch August 24, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant