mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-03 19:54:13 +13:00
If shift hold when creating first point then create two points that way polygon mode can create line
This commit is contained in:
parent
3b2d2d3045
commit
a51c132828
1 changed files with 3 additions and 2 deletions
|
@ -45,11 +45,12 @@ public override void OnUpdate()
|
|||
{
|
||||
Point pos = InputManager.MousePosition0Based;
|
||||
|
||||
if (points.Count == 0 || (!Manager.IsProportionalResizing && points.Last() != pos))
|
||||
if (points.Count == 0 || (!Manager.IsProportionalResizing && points[points.Count - 1] != pos))
|
||||
{
|
||||
points.Add(pos);
|
||||
}
|
||||
else if (Manager.IsProportionalResizing)
|
||||
|
||||
if (Manager.IsProportionalResizing)
|
||||
{
|
||||
if (!isPolygonMode)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue