Maniphest T67893

Drag and Drop for UI elements
Confirmed, NormalDESIGN

Assigned To
Julian Eisel (Severin)
Authored By
William Reynish (billreynish)
Jul 29 2019, 6:58 PM
Tags
  • BF Blender
  • User Interface
Subscribers
Albert (wevon)
Atamert Ölçgen (muhuk)
Duarte Farrajota Ramos (duarteframos)
eldee smith (eldee)
Ermins Ermanis (erminos)
Guillaume Tjeka (apprenti90)
Hadrien Brissaud (hadrien)
15 More Subscribers
Tokens
"Like" token, awarded by AttentionAaron."Love" token, awarded by Mylo."Like" token, awarded by Pipeliner."Love" token, awarded by sopranoo."Like" token, awarded by Arkhangels."Like" token, awarded by TakingFire."Love" token, awarded by Okavango."Burninate" token, awarded by Peps."Love" token, awarded by RodDavis."Love" token, awarded by Schiette."Love" token, awarded by Alumx."Like" token, awarded by Fracture128."Love" token, awarded by Shimoon."100" token, awarded by Frozen_Death_Knight."Love" token, awarded by eldee."Love" token, awarded by Draise."Love" token, awarded by Ryxx."Like" token, awarded by Constantina32."Love" token, awarded by lcs_cavalheiro."Burninate" token, awarded by 3Rton."Like" token, awarded by ugosantana."Love" token, awarded by Imaginer."Like" token, awarded by Tetone."100" token, awarded by fiendish55."Love" token, awarded by Thane5."Like" token, awarded by jc4d."Love" token, awarded by bnzs."Love" token, awarded by jendrzych."Love" token, awarded by looch."Mountain of Wealth" token, awarded by Zino."Love" token, awarded by duarteframos."Love" token, awarded by manitwo."Love" token, awarded by HooglyBoogly."Like" token, awarded by 0o00o0oo."Love" token, awarded by symstract."Like" token, awarded by amonpaike."Burninate" token, awarded by EitanSomething."Love" token, awarded by xrg."Love" token, awarded by CandleComet."Like" token, awarded by Zoot.

Description

In Blender, we have had drag and drop support for dragging content such as images onto objects, and 3d content into 3d views. However, we've always lacked the ability to drag the UI elements themselves.

This would be good to finally address.

This would mean we can get rid of these re-ordering buttons, which are slow because you can only move items one line at a time:

To move an item up by 10 lines, you have to click this button 10 times! This gets ridiculous if you have to move something 200 items up or down a list.

Even worse, in some cases we make users open a menu to move items one section at a time:

We should get rid of these buttons and menu entries, and just let users directly drag UI elements instead.

We already do this in the Properties Editor when re-ordering panels:


However, we can do this many more places, wherever we have the need for users to be able to re-order something.

Examples:

Animations are slowed down to show the animations more clearly.

Tabs:

Lists:

Use-Cases

  •  Workspace Tabs
  •  UI Lists
  •  Brush palette colors (T71705)
  •  Constraints, modifiers and other similar stacks
  •  Animation channel lists
  •  Customizable toolbars
  •  Dockable UI elements (e.g. support docking operator settings panel to sidebar, rather than having both by default)

Animation

To support this nicely, we should use animation to make items move out of the way, and to let the current items follow the cursor. This makes the UI feel physical and dependable, and you won't get any sudden surprises when you let go of your drag action, and the UI elements suddenly re-order themselves.

This kind of thing has a few implications how we draw some UI elements.

In Blender we still have the fairly unique advantage that we are drawing the UI using the GPU, which facilitates creating beautifully smooth animations and transitions. We just need to take advantage of this more, just as we do with region overlapped area regions:

Related Tasks

D4071: Window-Manager: Rewrite Drag & Drop System [WIP]

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
William Reynish (billreynish) lowered the priority of this task from 90 to Normal.Jul 29 2019, 6:58 PM
William Reynish (billreynish) edited a custom field.
William Reynish (billreynish) updated the task description.
William Reynish (billreynish) added subscribers: User Interface, Julian Eisel (Severin).
William Reynish (billreynish) assigned this task to Julian Eisel (Severin).Jul 29 2019, 7:01 PM
William Reynish (billreynish) mentioned this in T63726: User Interface Module .
William Reynish (billreynish) updated the task description.Jul 29 2019, 7:03 PM
Gavin Scott (Zoot) awarded a token.Jul 29 2019, 7:05 PM
William Reynish (billreynish) updated the task description.Jul 29 2019, 7:05 PM
CandleComet (CandleComet) awarded a token.Jul 29 2019, 7:08 PM
xrg (xrg) awarded a token.Jul 29 2019, 7:18 PM
William Reynish (billreynish) updated the task description.Jul 29 2019, 7:19 PM
Eitan Traurig (EitanSomething) awarded a token.Jul 29 2019, 8:03 PM
Valentin (Poulpator) added a subscriber: Valentin (Poulpator).Jul 29 2019, 8:47 PM
noki paike (amonpaike) awarded a token.Jul 29 2019, 10:23 PM
William Reynish (billreynish) updated the task description.Jul 29 2019, 10:40 PM
Antti Tikka (symstract) awarded a token.Jul 30 2019, 1:26 AM
William Reynish (billreynish) updated the task description.Jul 30 2019, 1:54 PM
KiJeon (0o00o0oo) awarded a token.Aug 3 2019, 11:00 AM
KiJeon (0o00o0oo) added a subscriber: KiJeon (0o00o0oo).
Hans Goudey (HooglyBoogly) awarded a token.Aug 3 2019, 6:46 PM
Manuel Grad (manitwo) awarded a token.Aug 4 2019, 12:05 AM
Duarte Farrajota Ramos (duarteframos) awarded a token.Aug 4 2019, 2:10 AM
Duarte Farrajota Ramos (duarteframos) added a subscriber: Duarte Farrajota Ramos (duarteframos).
Zino Guerr (Zino) awarded a token.Aug 5 2019, 4:31 PM
Luciano Muñoz Sessarego (looch) awarded a token.Aug 12 2019, 4:35 PM
Andrzej Ambroz (jendrzych) awarded a token.Aug 12 2019, 9:07 PM
Julien Leménicier (mistajuliax) added a subscriber: Julien Leménicier (mistajuliax).Aug 14 2019, 4:58 PM
B (bnzs) awarded a token.Aug 26 2019, 8:56 PM
Juan (jc4d) awarded a token.Aug 27 2019, 4:04 PM
Christoph Lohr (Thane5) awarded a token.Sep 17 2019, 4:31 PM
Hadrien Brissaud (hadrien) added a subscriber: Hadrien Brissaud (hadrien).Sep 25 2019, 2:50 PM

I'm not fond of animations especially for the 'UI list' case - I think drawing a dotted line where the item is going to be inserted is more efficient and straightforward (as most painting programs do it in their 'layers' list) - seeing items shift around disorientates me when I'm trying to precisely move a specific item to a location I'm targeting - when suddenly that visual target slides around, I'm not sure where to drop the thing anymore. Maybe that's just my brain ? Quite a few interfaces do this (off the top of my head Discord does this with its channel list, & last I checked Android UI framework kind of enforces it too) and I find it quite disturbing. They do make more sense in a grid view (2D) though, because the order of items is not necessarily as obvious as in a list (1D).
Other than that, obviously in full agreement of the proposal.

Mikail (fiendish55) awarded a token.Sep 26 2019, 2:16 PM
Vilem Duha (pildanovak) added a subscriber: Vilem Duha (pildanovak).Sep 30 2019, 9:32 PM

Regarding vertex groups and other items that are in UI lists - also your example shows clearly a problem that would be probably better addressed in Outliner. A typical list of vertex groups on a character has a length of at least 20, and that is for very simple rigs. Then comes the problem of dragging to the border and then starting some auto-scroll - which is perceptually probably very confusing. I don't say this won't happen in Outliner, but there is simply much more space by default to do these things. So the question is, why not to get rid of the lists instead of trying to improve something that won't work also with this improvement.

Hadrien Brissaud (hadrien) added a comment.Sep 30 2019, 9:43 PM

Good point. I know of a way certain programs address that : they allow for splitting the list in two : one at the top, another at the bottom. Moving an item a long way is then just a matter of scrolling to the right place in the first 'pane' so to say, and then dragging the item from the second pane into the first one.

William Reynish (billreynish) added a comment.Oct 1 2019, 8:37 AM

@Vilem Duha (pildanovak) that is irrelevant to improving drag and drop in Blender. We use this UI in many places, not just for Vertex Groups.

stefano severi (Tetone) awarded a token.Oct 15 2019, 8:12 AM
Vilem Duha (pildanovak) added a comment.Oct 22 2019, 2:52 PM

@William Reynish (billreynish) My comment was directed at all these use cases. Vertex groups are just the most prominent case.

Ryan Inch (Imaginer) awarded a token.Nov 3 2019, 11:39 PM
Ryan Inch (Imaginer) added a subscriber: Ryan Inch (Imaginer).
Ugo Santana (ugosantana) awarded a token.Nov 5 2019, 10:43 AM
Julian Eisel (Severin) updated the task description.Nov 21 2019, 12:14 PM
William Reynish (billreynish) mentioned this in T71849: Reorder Colors in Palette.Nov 24 2019, 3:12 PM
T.R.O. Nunes (3Rton) awarded a token.Nov 26 2019, 8:37 PM
Leandro Cavalheiro (lcs_cavalheiro) awarded a token.Dec 1 2019, 11:24 AM
Konstantina Anagnostou (Constantina32) awarded a token.Dec 24 2019, 6:00 PM
Konstantina Anagnostou (Constantina32) added a subscriber: Konstantina Anagnostou (Constantina32).
Ryxx (Ryxx) awarded a token.Dec 25 2019, 7:20 PM
Ryxx (Ryxx) added a subscriber: Ryxx (Ryxx).
Andres Stephens (Draise) awarded a token.Feb 2 2020, 11:00 PM
Luciano Muñoz Sessarego (looch) added a subscriber: Luciano Muñoz Sessarego (looch).Feb 2 2020, 11:35 PM
eldee smith (eldee) awarded a token.Feb 2 2020, 11:44 PM
eldee smith (eldee) added a subscriber: eldee smith (eldee).
Pipeliner (Pipeliner) awarded a token.Feb 3 2020, 1:37 PM
Pipeliner (Pipeliner) rescinded a token.
Pipeliner (Pipeliner) added a subscriber: Pipeliner (Pipeliner).
Kenn Nyström (Frozen_Death_Knight) awarded a token.Feb 3 2020, 11:43 PM
Simon (Shimoon) awarded a token.Feb 5 2020, 1:52 AM
Vitalii Vlasov (Fracture128) awarded a token.Feb 5 2020, 8:56 AM
Vas (Alumx) awarded a token.Feb 5 2020, 10:32 AM
Pieter Schiettecatte (Schiette) awarded a token.Feb 13 2020, 5:39 PM
Rombout Versluijs (rombout) added a subscriber: Rombout Versluijs (rombout).Feb 17 2020, 12:42 AM
Rodger Davis (RodDavis) awarded a token.Feb 25 2020, 12:29 AM
xan2622 (xan2622) added a subscriber: xan2622 (xan2622).Apr 15 2020, 11:00 AM
Pieter Schiettecatte (Schiette) added a subscriber: Pieter Schiettecatte (Schiette).Apr 15 2020, 8:41 PM
Giuseppe Bufalo (Peps) awarded a token.Apr 25 2020, 9:46 AM
William Reynish (billreynish) updated the task description.Apr 25 2020, 7:42 PM
Okavango (Okavango) awarded a token.Apr 27 2020, 9:20 AM
Albert (wevon) added a subscriber: Albert (wevon).Apr 27 2020, 10:09 AM

Perhaps minimizing the panels automatically when moving and reopening them once they have been rearranged would make it more compact and avoid scrolling.

Braden Currah (TakingFire) awarded a token.May 13 2020, 6:09 AM
Evandro Costa (Arkhangels) awarded a token.May 18 2020, 9:20 PM
S (sopranoo) awarded a token.Jun 14 2020, 10:42 AM
slowk1d (Geronimooo) awarded a token.Jun 18 2020, 12:45 AM
slowk1d (Geronimooo) rescinded a token.
Julian Eisel (Severin) added a project: User Interface.Jun 26 2020, 4:22 PM
Julian Eisel (Severin) moved this task from Backlog to Long-Term Scope (Active) on the User Interface board.
Atamert Ölçgen (muhuk) added a subscriber: Atamert Ölçgen (muhuk).Dec 11 2020, 10:53 AM
Julian Eisel (Severin) moved this task from Long-Term Scope (Active) to Long-Term Scope (Inactive) on the User Interface board.Feb 11 2021, 9:41 PM
Pipeliner (Pipeliner) awarded a token.Feb 12 2021, 10:09 AM
Ermins Ermanis (erminos) added a subscriber: Ermins Ermanis (erminos).Feb 16 2021, 5:35 AM
Mylo Pinto Rizvi (Mylo) awarded a token.Aug 30 2021, 2:24 PM
Mylo Pinto Rizvi (Mylo) added a subscriber: Mylo Pinto Rizvi (Mylo).
Mylo Pinto Rizvi (Mylo) removed a subscriber: Mylo Pinto Rizvi (Mylo).
Vladislav Macíček (Aeraglyx) added a subscriber: Vladislav Macíček (Aeraglyx).Sep 5 2021, 1:35 AM
Aaron (AttentionAaron) awarded a token.Jul 16 2022, 3:24 AM
Guillaume Tjeka (apprenti90) added a subscriber: Guillaume Tjeka (apprenti90).Jul 22 2022, 1:05 AM