mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-03 10:46:57 +13:00
Override IsSelectable instead of Intersects
This commit is contained in:
parent
0657d23139
commit
c963e94406
1 changed files with 2 additions and 5 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue