Start resizing from bottom right instead of top left

This commit is contained in:
Jaex 2016-08-05 15:24:29 +03:00
parent 0834ca540c
commit 4d01f94cb7

View file

@ -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);
} }
} }
} }