pragmatic-drag-and-drop icon indicating copy to clipboard operation
pragmatic-drag-and-drop copied to clipboard

Accomodate iOS specific multi drag pattern

Open nmn opened this issue 1 year ago • 10 comments

iOS lets you drag multiple elements at once, the library doesn’t handle that correctly. Only the first element is actually moved after dropping.

Here’s a video that shows the problem.

https://github.com/atlassian/pragmatic-drag-and-drop/assets/3582514/8f74c86e-9da7-4890-a5ed-8c52838de3c8

Not shown: cards already being dragged can be added multiple times to the stack. Any card being dragged should be made inert.

nmn avatar Apr 07 '24 03:04 nmn

We have an upcoming multi-drag pattern, which will enable multi drag on all platforms. This built in behaviour on iOS is super interesting! Thankfully I think we can accommodate this in our example(s), and we'll need to add some documentation about it. It's a shame (from what I understand) that it's only iOS that does this.

We could look into making a way to try to disable the iOS feature, and rely on our cross platform multi drag solution too 🤔

alexreardon avatar Apr 07 '24 06:04 alexreardon

We could look into making a way to try to disable the iOS feature

FWIW, enabling the iOS feature is preferable in my opinion, but I understand if it is challenging to make work consistently.

A simple fix to disable multi-drag would be remove the draggable attribute globally when a single element is being dragged.

nmn avatar Apr 08 '24 07:04 nmn

We have an upcoming multi-drag pattern, which will enable multi drag on all platforms. This built in behaviour on iOS is super interesting! Thankfully I think we can accommodate this in our example(s), and we'll need to add some documentation about it. It's a shame (from what I understand) that it's only iOS that does this.

We could look into making a way to try to disable the iOS feature, and rely on our cross platform multi drag solution too 🤔

Any timeframe for the multi-drag? I always wanted to use react-beautify-dnd, but it supported only React. Now this library could help me solve my issues with multi-drag support. Keep up the good work!

ispal avatar Apr 30 '24 10:04 ispal

Any updates on the multi-drag functionality @alexreardon ?

thomasbritton avatar May 23 '24 13:05 thomasbritton

Not having multi-drag is now a huge turn-off. Is there an ETA?

jiri1337 avatar Jun 13 '24 13:06 jiri1337

Also looking forward to multi drag functionality.

J-Michalek avatar Aug 20 '24 11:08 J-Michalek