Download

Widget drag and drop - how to get the correct drop point

in the video, you can see 2 conditions: first, the window offset is not connected and then I see the draggable widget silhouette, but when I drop the widget it is created so that the mouse pointer is at the top left corner.

in the 2nd one, you can the offset is connected, and then the silhouette is “jumping” out of the screen, but when I drop the widget it is created around the pointer in the same place I picked it up.

I’m trying to get the mix of the two: when the widget is dropped it’s created around the pointer in the same way as the 2nd condition, and having the silhouette while dragging.

any suggestions?

thank!