buttonwoodcx / bcx-aurelia-dnd

Aurelia Drag and Drop.
https://buttonwoodcx.github.io/doc-bcx-aurelia-dnd
MIT License
21 stars 2 forks source link

Possible? Move source out of target #14

Closed seriouz closed 4 years ago

seriouz commented 4 years ago

Is it possible to drag an source out of a target, when was already dropped onto it? Or resize a source bigger than its target.

3cp commented 4 years ago

Source and target are totally independent. They don't need to have child parent relationship in DOM, nor need size limit.

To drag a source out of something, it must land somewhere, you define the somewhere as another target. That is basically how multi-list reorderable-repeat was implemented.

When your source layout is bigger than its container, you need to handle it with overflow css on the container dom, bcx-aurelia-dnd does not care much.

seriouz commented 4 years ago

Thank you!