You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of dnd-kit's default "drag-and-drop" functionality, is there any way to do something like "click-and-drop"?
These would be as follows:
drag-and-drop - hold down the mouse button on an attach it to your mouse cursor, and let go of the mouse button to drop it
click-and-drop - press the mouse button to attach an item to your mouse cursor, and press the mouse button again to drop it
"click-and-drop" is particularly useful for situations in which you want to do some operation on the item while it attached on the cursror. For any example, consider Minecraft's inventory system. You left-click an item to attach it to your mouse cursor, and while it is attached, you can right-click to drop half of the contents and leave the other half attached.
If it's possible, I would really appreciate some example code!
The text was updated successfully, but these errors were encountered:
Instead of dnd-kit's default "drag-and-drop" functionality, is there any way to do something like "click-and-drop"?
These would be as follows:
"click-and-drop" is particularly useful for situations in which you want to do some operation on the item while it attached on the cursror. For any example, consider Minecraft's inventory system. You left-click an item to attach it to your mouse cursor, and while it is attached, you can right-click to drop half of the contents and leave the other half attached.
If it's possible, I would really appreciate some example code!
The text was updated successfully, but these errors were encountered: