Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

the newindex returned varies

Open DealerCorp opened this issue 11 years ago • 1 comments

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)

DealerCorp avatar Mar 24 '15 14:03 DealerCorp

Create example on jsbin.com

RubaXa avatar Mar 25 '15 15:03 RubaXa