Ctrl + mouse wheel will change magnifier pixel count

This commit is contained in:
Jaex 2016-05-16 11:55:32 +03:00
parent 11c6f43f9e
commit 4e05c6748b

View file

@ -686,6 +686,18 @@ private void form_MouseWheel(object sender, MouseEventArgs e)
{ {
CurrentShapeType = CurrentShapeType.Next<ShapeType>(); CurrentShapeType = CurrentShapeType.Next<ShapeType>();
} }
if (Control.ModifierKeys.HasFlag(Keys.Control))
{
if (e.Delta > 0)
{
if (config.MagnifierPixelCount < 41) config.MagnifierPixelCount += 2;
}
else if (e.Delta < 0)
{
if (config.MagnifierPixelCount > 2) config.MagnifierPixelCount -= 2;
}
}
} }
public void Update() public void Update()