isaacHagoel / svelte-dnd-action

An action based drag and drop container for Svelte
MIT License
1.82k stars 104 forks source link

Question: Copy on Drag? #342

Closed dr-starchildren closed 2 years ago

dr-starchildren commented 2 years ago

This package looks really neat and flexible. The one thing I need though, copy on drag, is only hinted at in the readme.

info: This one can be used to achieve very advanced custom behaviours (ex: copy on drag).

I have a bank of component tokens that can be dragged to a game board, but I need that bank to be infinite and non-editable. Do you have a repl for this type of feature? It's very similar to the scrabble example, but the tiles would need to be copied from the rack instead of being removed.

Thanks for making such a great package!

dr-starchildren commented 2 years ago

Completely missed the dragula example. I'll check that one first.