Description
the (ionItemReorder) $event object returns the wrong 'to' index when dragging an item up or down, then while still dragging it, dropping it back to it's original place.
you would expect the 'from' and 'to' index to be the same value in this case, but instead it returns the 'from' index +1 or -1 depending on the last direction.
eg. dragging index 1 to index 3 then back up to index 1 and dropping it. will return, Object {from: 1, to: 2}
dragging index 3 to index 0 then back up to index 3 and dropping it. will return, Object {from: 3, to: 2}
you can also see the item is moved up or down while it should actually be remaining in place.
eg. when using ionics reorderArray(); function
Example,
http://plnkr.co/edit/590zKDfE071e63NYzhTK?p=preview
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS:
Node Version: v5.12.0