Added dx and dy when drag and drop to not change the distance between the cursor and the element when dragging