Files
wekan/docs/Design
Lauri Ojansivu 61bfcc0522 Without drag handles, a workspace is reordered from its icon and name.
With the handles turned off the drag source was the workspace's ICON alone, and
in practice reordering only worked with the handles on, from the handle.

Two reasons, and the second is why it did nothing rather than being merely
awkward:

  * a 16px glyph is a target that has to be aimed at, and the name beside it is
    the part of the row a reader is actually pointing at;

  * the anchor is not opted out of the page-level dragscroll, which takes the
    mousedown, so the drag never begins - and a drag that never begins is
    exactly what "reordering does not work" looks like.

The whole icon-and-name anchor is the drag source now, with `nodragscroll` on it
like the handle has, and `user-select: none` while it is the drag source: the
name is TEXT, and a press-and-move over selectable text starts a SELECTION,
which the browser then owns instead of starting an element drag. The handle
never needed that because a glyph in a span is not text anybody selects.

Clicking that same anchor still opens the workspace - a click and a drag are two
gestures on one element, as they are on a board tile with handles off - and the
cursor stays `pointer` rather than becoming `grab`, because opening it is what a
reader does with the row nearly every time.

Still NOT the whole row: it also holds the ⋯ menu and the board count, and a
drag started on those is a drag of something else. draggable lives on the handle
or on the anchor, and the dragstart handler stays on the row, which works
because the event bubbles up from whichever child started it.

Thanks to xet7 !
2026-08-01 23:24:42 +03:00
..
2026-06-14 14:35:05 +03:00