Improve movement of icons within user palettes

• Mar 16, 2016 - 11:26
Reported version
S4 - Minor

The problem: If you try to drag a palette icon to a new position within the palette, it merely swaps places with the destination icon. This makes it time-consuming to rearrange a lot of palette symbols: For example, if you have just dragged a new custom object to the palette and want to move it into position further up the icon list.

There is a very obvious fix. Change the current behavior from SWAP to INSERT.


I agree this seems to make more sense. I wonder if these exists some use case for which the current behavior is better, but whatever it might be, I doubt it is as common as wanting the "insert" behavior.

I have a prototype that will insert the dragged element into the dropped place, shuffling everything else between them.

I will try to create some sort of feedback for the user so they can anticipate what will happen (maybe a thick line between cells where it will insert, or live-shuffling them if it isn't a performance issue).

Status (old) active patch (code needs review)

Pull request added.

Will need some feedback on how we want to approach insertions. Do we want to shuffle all elements down, or just until we hit a space? Is the extended append wanted? You can now drop an element anywhere in the palette and it will be placed there (instead of snapping to last position).