Re-enable dragging of links. Had broken that when making the ability to drag multiple items around the screen.
This commit is contained in:
parent
ab060f622d
commit
d129fdc1a4
@ -1199,7 +1199,12 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
Point CenteredLocation = myNetwork.clickedPosCentered(e.Location);
|
Point CenteredLocation = myNetwork.clickedPosCentered(e.Location);
|
||||||
Point MouseLocation = myNetwork.clickedPos(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
|
//find where we are
|
||||||
DragItemToNewLocation(ItemClickedOn, CenteredLocation);
|
DragItemToNewLocation(ItemClickedOn, CenteredLocation);
|
||||||
|
Loading…
Reference in New Issue
Block a user