Sortable
Sortable copied to clipboard
the newindex returned varies
I'm using ng-sortable and noticed 2 issues:
- dragging an element from a list to another empty list, the newIndex in onadd is supposed to be 0. on my desktop, it's 0; on my ipad, it's 1.
- then I updated the HTML a little(removing surrounding div), the newindex returned on my desktop is 1 too. now I have to find the index in code again: _.findIndex(evt.models, evt.model)
Create example on jsbin.com