I am using standard drag and drop functions, as in the Drag and Drop (GUI) demo. Works well, but there are a couple of things I don't like:
- When I start dragging, the preview does not appear immediately until the cursor moves a few pixels away. If you grab the edge of a draggable object, you can watch the cursor leave the object entirely before the preview finally appears. Can this be configured somehow, so that the preview appears immediately when the cursor starts moving?
- Whether or not the drop is successful seems to depend on the cursor position, and not the fact that the preview is overlapping the drop zone. This means I can drag the preview so that it covers a good chunk of the drop zone, and when I let go of the mouse button, the drop is still unsuccessful. What is the best way to make the drop succeed whenever the preview overlaps the target (and the player lets go of the mouse button)?
I am using a ColorRect for the preview.