fatlinesofcode / ngDraggable

Drag and drop module for Angular JS
MIT License
630 stars 399 forks source link

Draggable with Draggable Children? (draggable tree) #152

Open plong0 opened 9 years ago

plong0 commented 9 years ago

Wondering if there are any examples of ngDraggable items with ngDraggable children?

I am looking at creating a recursive tree and would like to be able to move items around in it.

I am starting to work on it, but wanted to ask if anyone has worked with this before? If I am successful, I will post a PR with working example.

The first trouble I am seeing is that when I drag a child node, it also drags the parent.

Another strange thing I am seeing is that when I drag an item with draggable children, the ng-drag-* functions get called several times each (all with the same "data" parameter though).

alpavlove commented 9 years ago

+