draggable icon indicating copy to clipboard operation
draggable copied to clipboard

Multi-select support?

Open madebyaaron opened this issue 8 years ago • 4 comments

Hi guys, fantastic work. I'm really loving this package.

Do you have any plans to add in functionality to select multiple draggable elements?

It'd be really neat if multiple items could be cloned and follow the cursor onDrag

madebyaaron avatar Oct 26 '17 00:10 madebyaaron

@madebyaaron thanks!

Interesting idea! How would you see this work?

I had a similar idea for multi-touch support, i.e. ability to pick up multiple draggables with multiple fingers. But this would be something to look at after releasing the first stable build.

tsov avatar Oct 26 '17 14:10 tsov

I'd approach it in the following...

I currently have a delay on my sortable items to allow me to select them using "command/ctrl + click". This adds a reference of the selected item to a store to track the state (a glorified array).

When i drag one of my sortable items (with command/ctrl held down), a mirror would be created for each selected item (offset by one another). Giving the appearance that I'm moving all selected items. Then on release, all the items would be moved to the new position (respecting their original indexing)

That'd would be my approach in terms of functionality. Happy to provide how i'd approach it technically too if it helps.

madebyaaron avatar Oct 27 '17 18:10 madebyaaron

@madebyaaron Hi guy, how do you use "command/ctrl + click" to select an item, In the onMouseDown event of MouseSensor. js , the ctrlKey event is returned. You can look at this Thx~

Amfishers avatar Sep 17 '19 02:09 Amfishers

I had a similar idea for multi-touch support, i.e. ability to pick up multiple draggables with multiple fingers. But this would be something to look at after releasing the first stable build.

Has this ever been implemented? When I try to drag a second item, the first one isn't released and the mirror stays displayed indefinitely. I'd like to know if it's because of my implementation or simply not possible with v1.0.0-beta.12

Irina-Intuiface avatar Jun 01 '23 13:06 Irina-Intuiface