deck icon indicating copy to clipboard operation
deck copied to clipboard

Improve stack drag and drop behavior

Open Mr-Tin-25 opened this issue 3 years ago • 8 comments

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

Mr-Tin-25 avatar Dec 19 '20 12:12 Mr-Tin-25

Not sure about this, other solutions seem to also always allow reordering.

cc @jancborchardt @Clementine46 What do you think?

juliushaertl avatar Dec 29 '20 12:12 juliushaertl

and what about moving the columns only by grabbing them on top next to name?

Mr-Tin-25 avatar Jan 08 '21 22:01 Mr-Tin-25

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 Peek 21-01-2021 16-01

quentinDupont avatar Jan 21 '21 15:01 quentinDupont

Maybe a hover css on top column would be nice also ?

quentinDupont avatar Jan 21 '21 15:01 quentinDupont

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.

Mr-Tin-25 avatar Jan 21 '21 21:01 Mr-Tin-25

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)...

reox avatar May 12 '22 15:05 reox

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

juliushaertl avatar Aug 09 '22 06:08 juliushaertl

Related pull request for the cards: https://github.com/nextcloud/deck/pull/3916

juliushaertl avatar Aug 09 '22 06:08 juliushaertl