task-lists-element
task-lists-element copied to clipboard
Moving an item from `sourceIndex = 0`, sets `dst` as `newIndex + 1`
For example:
Moving Hubot from position [0, 0] to position [0, 1] actually gets calculated as moved to position [0, 2].
Reading the comment in: https://github.com/github/task-lists-element/blob/78fff629fcb57cca1841d0899f48581f05c6788b/src/sortable.ts#L140 It appears that this behavior is explicit.