When I swap two items being the one that I drag the one of the bottom, after the swap is made correclty, when I create a new Item in the list, this new item appear in the wrong place (under the item thet used to be the last, see images). The list of elements is in the right order when I log it to the console.
List inital state
After items 3-2 swapped dragging the inial item 3 to the 2 place (check coordinates for reference)
New item 4 created in the wrong place
Interestingly if you swap the items the other way araund it wokrs fine.
This is my code simplified
When I swap two items being the one that I drag the one of the bottom, after the swap is made correclty, when I create a new Item in the list, this new item appear in the wrong place (under the item thet used to be the last, see images). The list of elements is in the right order when I log it to the console.
List inital state![Initial state](https://github.com/Alfred-Skyblue/vue-draggable-plus/assets/39694654/50bda04a-6d8d-4159-b3cd-e3a90cecd541)
After items 3-2 swapped dragging the inial item 3 to the 2 place (check coordinates for reference)![After move](https://github.com/Alfred-Skyblue/vue-draggable-plus/assets/39694654/0698abad-28d9-4c33-96e2-59afa9d41403)
New item 4 created in the wrong place![After new item](https://github.com/Alfred-Skyblue/vue-draggable-plus/assets/39694654/6a2eb060-ef4a-4af3-99a1-748a9241f014)
Interestingly if you swap the items the other way araund it wokrs fine. This is my code simplified
Note that the matrix is an Vue Ref<Element[][]> injected in the component.