News for hackers. Stuff that matters.
Re:Chrome 77 Breaking Drag and Drop Events by js8 on Friday October 11, 2019 @12:50AM (#21221640)
It seems like drag-and-drop is out of fashion. I think big reason is that it really cannot be done well on touch-screen devices and touchpads. I don't really complain, because I have always found d&d rather impractical (and it's also terrible for accessibility); unfortunately, there are some applications that still rely on it a lot.

(As an aside, what bothers me more that the right-click menu goes out of fashion. That I feel is a bigger usability problem.)

Re:Chrome 77 Breaking Drag and Drop Events by jarfil on Friday October 11, 2019 @12:53AM (#21221651)
> cannot be done well on touch-screen devices

I literally just drag-and-dropped that text on a phone.

Re:Chrome 77 Breaking Drag and Drop Events by js8 on Friday October 11, 2019 @12:59AM (#21221673)
Good for you! I personally find it difficult to do it without a mouse.

And even with mouse it's error prone, you might accidentally move your mouse during clicking on something, and d&d something somewhere that you don't really want to (classic example is moving folder into another folder in the file open dialog).

Re:Chrome 77 Breaking Drag and Drop Events by imhoguy on Friday October 11, 2019 @03:43AM (#21222350)
DnD is natural human gesture to move things around. Implementation is imperfect but Undo should help then. Desktop has all this sorted out for years.
Re:Chrome 77 Breaking Drag and Drop Events by js8 on Friday October 11, 2019 @05:54AM (#21222853)
Unfortunately, there is no Undo on the file open dialog. So, no, the desktop hasn't it sorted all out.

But I don't really mind DnD as long as it's not obtrusive and there are other means to accomplish the task.

Re:Chrome 77 Breaking Drag and Drop Events by SmellyGeekBoy on Friday October 11, 2019 @08:36AM (#21223697)
Did you try pressing Ctrl-Z? This has worked in Windows Explorer (and by extension the native File Open dialog) for years.
Re:Chrome 77 Breaking Drag and Drop Events by pmontra on Friday October 11, 2019 @02:31AM (#21222044)
A customer of mine uses Kanbanize to organize software development. Think Trello on steroids. I imagine that instead of dragging cards to their destination we could open a menu and select the destination column. Maybe that would be even faster sometimes. However reordering cards inside a column without drag and drop would be a pain: Move Up, Move Down buttons, no thanks.
Re:Chrome 77 Breaking Drag and Drop Events by josteink on Friday October 11, 2019 @04:55AM (#21222629)
> I imagine that instead of dragging cards to their destination we could open a menu and select the destination column. Maybe that would be even faster sometimes.

In Azure Devops (Or Microsoft Team Foundation Server, for the old-timers), you can do this.

And the people trying to twiddle the menus are orders of magnitudes slower at operating the board than people simply dragging things around.

It's so much slower, it's painful to watch.

Re:Chrome 77 Breaking Drag and Drop Events by js8 on Friday October 11, 2019 @02:51AM (#21222129)
I don't disagree, this is a great example. I think d&d can work in special cases where the distance for the item to travel is not too small (so that you wouldn't move things by accident), but it is also not uncomfortably far away so that you don't see the target and have to navigate to it while you're d&d-ing. I guess these limiting factors are what makes it tricky to get right.

But what about selecting a card and being able to move it around with the keyboard?

Re:Chrome 77 Breaking Drag and Drop Events by pmontra on Friday October 11, 2019 @03:43AM (#21222349)
Click to select and move with arrow keys could be OK. We should measure times but my gut feeling is that if I already have my hand on the mouse or touchpad (in my case it's always a touchpad) then I can keep using it to move the card around without the extra time to reach for the keys.

Gut feeling again: the keyboard could be more effective on larger distances because each tap of a key is a full movement of one row or one column, and no mistakes.

People using a mouse probably need more time to release the mouse and move their hand back to the keyboard, unless they are left handed: mouse on the left and right hand already close to the arrow keys.

About drag and drop: it's a mess if you can't see both source and destination at the same time. Then you drag hoping to be headed into the right direction. A right click menu could be better in those cases.

Re:Chrome 77 Breaking Drag and Drop Events by tremon on Friday October 11, 2019 @11:10AM (#21225107)
Click to select and move with arrow keys could be OK

Oh god no. Like you already state, most people operate both the mouse and the arrow keys with the right hand, so your proposal adds a lot of unnecessary movement. It could work with click to select and with WSAD keys, but most office users wouldn't discover that mode.

I would much prefer navigation keys (arrow keys, page up/down, home, end) to select, shift+navigation keys to move.

Re:Chrome 77 Breaking Drag and Drop Events by pmontra on Friday October 11, 2019 @12:24PM (#21225839)
My proposal was probably not very clear. The idea is to allow both mouse and keyboard navigation. Which combination of arrows? I'd add hjkl to the list (vi and rogue like games.)
Re:Chrome 77 Breaking Drag and Drop Events by josteink on Friday October 11, 2019 @04:56AM (#21222632)
> But what about selecting a card and being able to move it around with the keyboard?

So when someone suggests drag-n-drop works bad on touch/mobile, you suggest another operation which relies on a keyboard as a potential improvement?

Come on. This would make things even worse.

Re:Chrome 77 Breaking Drag and Drop Events by The_rationalist on Friday October 11, 2019 @02:54AM (#21222141)
Less ergonomic and most people don't use the keyboard anyway.
Re:Chrome 77 Breaking Drag and Drop Events by js8 on Friday October 11, 2019 @03:01AM (#21222173)
We know very well that well-designed keyboard UI can run circles around mouse-based one in a typical application. If you're a user of a "Kanban board", you're not some aunt with a phone, you are most likely in the office and you can learn to use the keyboard productively in the productivity app you use every day.
Re:Chrome 77 Breaking Drag and Drop Events by josteink on Friday October 11, 2019 @04:58AM (#21222639)
> If you're a user of a "Kanban board", you're not some aunt with a phone

No. Instead it means you are a project manager, and that often implies that your technical skills are on the same level as that aunt, maybe slightly better, but not by much.

> you are most likely in the office and you can learn to use the keyboard

Or just keep using drag'n'drop which is the established pattern, which also works really well for this, with the mouse you already have in the office.

Re:Chrome 77 Breaking Drag and Drop Events by js8 on Friday October 11, 2019 @07:38AM (#21223343)
> No. Instead it means you are a project manager, and that often implies that your technical skills are on the same level as that aunt, maybe slightly better, but not by much.

I am not a PM so I couldn't care less, but I think this is really condescending to people who work in that role. If you're a knowledge worker, it's your responsibility to make yourself familiar/efficient with the tools you use daily.

Re:Chrome 77 Breaking Drag and Drop Events by pmontra on Friday October 11, 2019 @12:26PM (#21225871)
> > If you're a user of a "Kanban board", you're not some aunt with a phone

> No. Instead it means you are a project manager

Actually there are no project managers using Kanbanize at that customer of mine. They have exactly one developer and currently three freelance developers working remotely. All of us use Kanbanize every day because it's the place where we write the specs of what we have to do. One of the partners use it to answer our questions but I don't think he moves cards around.

Re:Chrome 77 Breaking Drag and Drop Events by likeclockwork on Friday October 11, 2019 @10:11AM (#21224522)
Click to lift, click to drop.

Better than the virtual manual labor of exerting constant force to keep something held.

Re:Chrome 77 Breaking Drag and Drop Events by londons_explore on Friday October 11, 2019 @08:34AM (#21223683)
The clear solution is to be able to drag something to a temporary location.

For example, a Trello card I should be able to drag to the home button on my iPhone, then switch apps, maybe go do something else for a bit, and then continue dragging it into an email, or HN comment.

Drag and drop should be more like universal cut and paste. It should be against intergalactic law to implement it all yourself so you can't drag between apps.

Re:Chrome 77 Breaking Drag and Drop Events by The_rationalist on Friday October 11, 2019 @02:52AM (#21222132)
How to move cards on a Kanban (say Trello) without drag and drop?
Re:Chrome 77 Breaking Drag and Drop Events by js8 on Friday October 11, 2019 @03:07AM (#21222196)
Select card by clicking, moving it to the destination by clicking to some other specific place.

Advantage of this to d&d is that you can navigate around during the process. You can easily scroll the screen if it's too large. You can for example select a different card. You can switch to different window and do something there.

Re:Chrome 77 Breaking Drag and Drop Events by octocode on Friday October 11, 2019 @03:03AM (#21222178)
In Trello, on a card:

Click the "Edit" menu > "move" > select board, column, position.

Not as convenient as drag and drop, but it's possible to do.

Re:Chrome 77 Breaking Drag and Drop Events by Marsymars on Friday October 11, 2019 @02:49PM (#21227225)
My preference would be something like arrow keys move the card selection, while holding ctrl + arrow keys moves the selected card.
Re:Chrome 77 Breaking Drag and Drop Events by gsich on Friday October 11, 2019 @01:38AM (#21221830)
Ah who cares, it works with a mouse. One should not force inferior input methods to devices that have better ones.
Re:Chrome 77 Breaking Drag and Drop Events by SmellyGeekBoy on Friday October 11, 2019 @08:38AM (#21223711)
By that logic we should eliminate the mouse and just go back to keyboards?