reppners / ngx-drag-drop

Angular directives using the native HTML Drag And Drop API
https://reppners.github.io/ngx-drag-drop/
BSD 3-Clause "New" or "Revised" License
299 stars 118 forks source link

Items bounce when dragging #53

Closed jpintog closed 1 year ago

jpintog commented 5 years ago

Hi there! this is my issue: I have a nested list of multiple items, and the items have some drop conditions, some of them have predefined children and the user can not drop more items inside (but is possible in the children), the thing is when I drag an item above the drop zone of other item (where the item I'm dragging can not be dropped) the items other items start bouncing.

I solved it duplicating the list and setting it without the drag&drop directives for the items with predefined children, but it would be better if setting the dndDropzone like [dndDropzone]="'none'" was enough

thanks!

reppners commented 5 years ago

Can you provide a small reproduction stackblitz or have a repo that I can check out?

Here is a template for stackblitz: https://stackblitz.com/edit/ngx-drag-drop-issue-template

jpintog commented 4 years ago

here is the video the all elements have a drop zone https://www.dropbox.com/s/mq42p6ny85fjza3/Screen%20Recording%202020-03-13%20at%209.04.19%20AM.mov?dl=0

ChristofFritz commented 1 year ago

Items should no longer "bounce" when being dragged.