This PR enhances DragDropHelper to support arbitrary moves, as dictated by its callback. It switches from always working with adjacent positions, to working with any position. For instance, it might ask its callback to move from position 1 to 2, and the callback can decide to move into position 10 instead (or any other, for that matter).
It also contains a couple of unrelated fixes/improvements. Review by commit is recommended.
This PR enhances
DragDropHelper
to support arbitrary moves, as dictated by its callback. It switches from always working with adjacent positions, to working with any position. For instance, it might ask its callback to move from position 1 to 2, and the callback can decide to move into position 10 instead (or any other, for that matter).It also contains a couple of unrelated fixes/improvements. Review by commit is recommended.