mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 12:41:24 +12:00
Override IsSelectable instead of Intersects
This commit is contained in:
parent
0657d23139
commit
c963e94406
|
@ -37,6 +37,8 @@ public class FreehandDrawingShape : BaseDrawingShape
|
|||
|
||||
public override bool IsValidShape => positions.Count > 0;
|
||||
|
||||
public override bool IsSelectable => Manager.CurrentTool == ShapeType.ToolSelect;
|
||||
|
||||
public Point LastPosition
|
||||
{
|
||||
get
|
||||
|
@ -60,11 +62,6 @@ public Point LastPosition
|
|||
private List<Point> positions = new List<Point>();
|
||||
private bool isPolygonMode;
|
||||
|
||||
public override bool Intersects(Point position)
|
||||
{
|
||||
return Manager.CurrentTool == ShapeType.ToolSelect && base.Intersects(position);
|
||||
}
|
||||
|
||||
public override void ShowNodes()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue