mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-05 20:54:31 +13:00
Start resizing from bottom right instead of top left
This commit is contained in:
parent
0834ca540c
commit
4d01f94cb7
1 changed files with 4 additions and 12 deletions
|
@ -179,8 +179,8 @@ public bool IsResizing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsProportionalResizing { get; private set; }
|
|
||||||
public bool IsCornerMoving { get; private set; }
|
public bool IsCornerMoving { get; private set; }
|
||||||
|
public bool IsProportionalResizing { get; private set; }
|
||||||
public bool IsSnapResizing { get; private set; }
|
public bool IsSnapResizing { get; private set; }
|
||||||
|
|
||||||
public List<SimpleWindowInfo> Windows { get; set; }
|
public List<SimpleWindowInfo> Windows { get; set; }
|
||||||
|
@ -808,7 +808,7 @@ private void UpdateContextMenu()
|
||||||
|
|
||||||
private void form_LostFocus(object sender, EventArgs e)
|
private void form_LostFocus(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
IsProportionalResizing = IsCornerMoving = IsSnapResizing = false;
|
IsCornerMoving = IsProportionalResizing = IsSnapResizing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void form_MouseDown(object sender, MouseEventArgs e)
|
private void form_MouseDown(object sender, MouseEventArgs e)
|
||||||
|
@ -918,15 +918,7 @@ private void form_KeyDown(object sender, KeyEventArgs e)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (nodeManager.Visible)
|
StartRegionSelection();
|
||||||
{
|
|
||||||
DeselectShape();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (CurrentShape == null || CurrentShape != GetShapeIntersect())
|
|
||||||
{
|
|
||||||
StartRegionSelection();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Keys.ControlKey:
|
case Keys.ControlKey:
|
||||||
|
@ -1047,7 +1039,7 @@ private void form_KeyDown(object sender, KeyEventArgs e)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
shape.Resize(x, y, e.Alt);
|
shape.Resize(x, y, !e.Alt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue