These are chat archives for angular-ui/ui-sortable

24th
Jul 2015
Alan Brian Dardic
@alandardic
Jul 24 2015 08:55
Hi, I have found another bug in the ui-sortable-multiselection:
For example: If you have a list of 4 Items (0-3) when dragging item 1 and 3 to dropindex 1 the update function isn't firing - although the second item did updates his location...
:shipit:
Alan Brian Dardic
@alandardic
Jul 24 2015 09:27
Another bug: If you have a list of 5 Items (0-4) when dragging item 1 and 3 and 4 to dropindex 1 the update function is firing - but the dropindex is 2 instead of 1
Thanks
Thodoris Greasidis
@thgreasi
Jul 24 2015 12:42
Where did you try to drop them? Below item 0?
And what property did you use to access the dropindex
Alan Brian Dardic
@alandardic
Jul 24 2015 14:04
Yes- below item 0
The property I used to access the dropindex is ui.item.sortable.dropindex
Alan Brian Dardic
@alandardic
Jul 24 2015 14:11
Let me know if you can't reproduce both of the bugs i'll explain it more thorough
Thodoris Greasidis
@thgreasi
Jul 24 2015 14:37
Basically this is just what jquery ui reports as drop index when using helper elements. It looks like it counts the hidden elements that appear to be co-dragged inside the generated helper element. The multiselect directive tracks the positions of the co-dragged elements to move the models appropriately based on their original positions and the reported drop index.
Jquery ui might also report different dropindexes if you decide to start the drag from a different element.
The part that update is not firing needs investigation