Re-enable dragging of links. Had broken that when making the ability to drag multiple items around the screen.

This commit is contained in:
Tim Young 2017-06-14 14:10:00 -05:00
parent ab060f622d
commit d129fdc1a4
1 changed files with 6 additions and 1 deletions

View File

@ -1199,7 +1199,12 @@ namespace EduNetworkBuilder
Point CenteredLocation = myNetwork.clickedPosCentered(e.Location);
Point MouseLocation = myNetwork.clickedPos(e.Location);
if (MouseIsDown && LastBackgroundImage != null && ItemClickedOn != null && ItemsSelected.Count == 0) //We are trying to drag something
//If we are dragging lines, do that first.
if (selectedButton == "btnLink")
{
//We are trying to do a link. Do not drag...
}
else if (MouseIsDown && LastBackgroundImage != null && ItemClickedOn != null && ItemsSelected.Count == 0) //We are trying to drag something
{
//find where we are
DragItemToNewLocation(ItemClickedOn, CenteredLocation);