I have a Canvas that contains, let’s say rectangles to be simple. These rectangles can be single selected, multi selected(two or more rectangles). When I have multi selected rectangles, I want to drag all selected rectangles and maintain the distance between these rectangles.
Any suggestions how to achieve that kind of behaivor?
Best regards,
Gabriel
Well when moving, add the delta in the mousemove event to all elements current Canvas position, that way you will keep the distance between the objects.