task-lists-element icon indicating copy to clipboard operation
task-lists-element copied to clipboard

Moving an item from `sourceIndex = 0`, sets `dst` as `newIndex + 1`

Open jlduran opened this issue 2 years ago • 1 comments

For example: Moving Hubot from position [0, 0] to position [0, 1] actually gets calculated as moved to position [0, 2]. Screenshot 2023-07-03 at 1 05 57 PM

jlduran avatar Jul 03 '23 16:07 jlduran

Reading the comment in: https://github.com/github/task-lists-element/blob/78fff629fcb57cca1841d0899f48581f05c6788b/src/sortable.ts#L140 It appears that this behavior is explicit.

jlduran avatar Jul 03 '23 20:07 jlduran