Override IsSelectable instead of Intersects

This commit is contained in:
Jaex 2019-04-15 16:56:31 +03:00
parent 0657d23139
commit c963e94406

View file

@ -37,6 +37,8 @@ public class FreehandDrawingShape : BaseDrawingShape
public override bool IsValidShape => positions.Count > 0; public override bool IsValidShape => positions.Count > 0;
public override bool IsSelectable => Manager.CurrentTool == ShapeType.ToolSelect;
public Point LastPosition public Point LastPosition
{ {
get get
@ -60,11 +62,6 @@ public Point LastPosition
private List<Point> positions = new List<Point>(); private List<Point> positions = new List<Point>();
private bool isPolygonMode; private bool isPolygonMode;
public override bool Intersects(Point position)
{
return Manager.CurrentTool == ShapeType.ToolSelect && base.Intersects(position);
}
public override void ShowNodes() public override void ShowNodes()
{ {
} }