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

When using ext-multi + ext-dnd5 there is a bug on dragStart #1025

Closed
hidr0 opened this issue Aug 13, 2020 · 2 comments
Closed

When using ext-multi + ext-dnd5 there is a bug on dragStart #1025

hidr0 opened this issue Aug 13, 2020 · 2 comments

Comments

@hidr0
Copy link

hidr0 commented Aug 13, 2020

Hello,

I am using ext-multi and ext-dnd5 to achieve multiple dnd.

Actual Behaviour:
I have selected a node.
I click to drag another node (without any modifier keys)
I am dragging two nodes - the first selected node and the secondly clicked one.

Expected behaviour:
Select a node.
Click to drag another node.
The first node is detected.
I am dragging only the second node.

Problem:
The startDrag event is initiated before the selection event (or the selection event is not initiated at all, I could not get to the bottom of it). When this happens the first node does not get deselected, and is in data.otherNodeList.

I think this is a bug, I could not get it fixed on my end.

Here it is reproduced:
http://jsfiddle.net/kvbenfcm/9/

Click on 200, then start dragging 300. You will see that you are dragging 100 and 200

Screenshot 2020-08-13 at 12 05 56

@mar10
Copy link
Owner

mar10 commented Aug 29, 2020

Fixed with next release. (Note that this can also be worked-around by implementing the dnd5.multiSource option as a callback)
.

@hidr0
Copy link
Author

hidr0 commented Aug 31, 2020

Thank you very much! I will wait for the new release.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants