Skip to content

Conversation

@codetakki
Copy link

Thank you for adding the multidrag support!

This PR fixes a bug where dragged items would take the "new index" from the item that started the drag, witch results in the new index being offset by that item:
Order befor drag:
Screenshot from 2024-05-15 13-12-02
Order after grabbing the last item and moving it to the top:
Screenshot from 2024-05-15 13-12-13

I found that the functions that update on multi used the "newIndex" key to determine the starting index for the rest of the items.
Instead, i suggest taking the first item in the "newIndicies" array as a starting point

@codetakki codetakki marked this pull request as ready for review May 15, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant