deck
deck copied to clipboard
Improve stack drag and drop behavior
Summary from the issue discussion
A few points that would make the drag behavior feel more expected:
- [ ] Only allow drag and drop on the stack title
- [ ] Do not trigger the stack rename on release of the mouse button if dragging has started
Original report
Hi,
could you please make columns/lists sticky even for people that are allowed to a add and remove them. It happens to often to me that i move columns randomly. Maybe you create an edit mode for columns.
Thanks Martin
Not sure about this, other solutions seem to also always allow reordering.
cc @jancborchardt @Clementine46 What do you think?
and what about moving the columns only by grabbing them on top next to name?
and what about moving the columns only by grabbing them on top next to name?
I agree : what is confusing is that we can move columns by grabbing them anywhere and that the pointer is not changing as when we grab the column on top. 2nd behaviour in this gif
Maybe a hover css on top column would be nice also ?
Or an icon as handler to grab. Like an arrow left right e.g.
Feature request: If columns only move when grabbing on top, it would be great to move the whole board view left and right when grabbing background.
IMO this problem has a lot to do with the other issues regarding accidental opening of cards or accidental editing of titles etc. IMO the regions where some actions are performed could be defined a bit more carefully. Right now, you have to be very careful when moving clicking somewhere in deck, because you are easily triggering some actions. For example, I do not think that it is necessary to be able to drag a stack at any location. Also coming from a physical Kanban board, reordering stacks is usually a very rare event (at least how I work with the stacks - ymmv).
I think being able to drag a stack in the title area only would be a nice solution and I think there is no extra icon required (an icon takes up space for example). However, right now, dragging a stack directly on the title will drag the stack but then go into edit mode of the title field (a similar issue like #2594) - that can also be seen in the gif above. A sticky mode might be a compromise between full flexibilty and no "surprises" while working with deck. But it would require an extra click in some menu if you often reorder stacks (if you won't disable it for ever that is)...
A few points that would make the drag behavior feel more expected:
- [ ] Only allow drag and drop on the stack title
- [ ] Do not trigger the stack rename on release of the mouse button if dragging has started
Related pull request for the cards: https://github.com/nextcloud/deck/pull/3916