-
Notifications
You must be signed in to change notification settings - Fork 786
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
Activate parent dropzone only after draggable leaves child dropzone #552
Comments
A workaround would be to surround the child dropzone with 4 dropzones which
are all matched by a different selector to the child, then set the
activated class for all 4 when one is activated.
Am 27.10.2017 7:28 nachm. schrieb "Viktor Zozuliak" <
[email protected]>:
… I have the following conditions:
-
I have nested dropzones, every has draggables.
-
I need to be able to drag and drop between these dropzones - from
child to parent and vice versa.
-
I’ve added checkers - if dropzone has this draggable - dropping is not
allowed - so when I pick up item that is already in dropzone - its own
dropzone is not activated.
But when I start dragging element in whatever nested dropzone - the parent
dropzone is being activated.
Here is the picture illustrating this behavior:
<https://user-images.githubusercontent.com/4233080/32116948-d6849e42-bb4c-11e7-89c9-a2f6ebe12955.png>
Is it possible to achieve the behavior when parent dropzone is being
activated only when draggable leaves the current (disabled by checker)
dropzone?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#552>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABmhgvHzHfQCsXr59hska8LaAaUfMZ89ks5swhKugaJpZM4QJYDm>
.
|
@taye hmm, not sure I am getting what you wanted to say here I'll try to add bit more of explanation to my image: The red ones are dropzones and blue ones are draggable. I need to drag blue one from DZ3 to DZ2, but when I just start dragging it - DZ2 gets activated. This happens because DZ3 is disabled by checker, and so interact.js activates DZ2. I need DZ2 to get activated only when blue one leaves DZ3. |
I meant to sort of cut the dropzones which have dropzones nested in them into four different elements which surround (but are not overlapped by) the child dropzone. You could also change the drop checker so that it allows drops to full elements, but do nothing when |
I have following conditions:
I have nested dropzones, every has draggables.
I need to be able to drag and drop between these dropzones - from child to parent and vice versa.
I’ve added checkers - if dropzone has this draggable - dropping is not allowed - so when I pick up item that is already in dropzone - its own dropzone is not activated.
But when I start dragging element in whatever nested dropzone - the parent dropzone is being activated.
Here is the picture illustrating this behavior:
Is it possible to achieve the behavior when parent dropzone is being activated only when draggable leaves the current (disabled by checker) dropzone?
The text was updated successfully, but these errors were encountered: