mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-03 13:40:34 +12:00
Force proportional resizing in magnify tool
This commit is contained in:
parent
7d71c6bd45
commit
d27a7de529
|
@ -97,6 +97,8 @@ private set
|
|||
|
||||
public virtual bool IsSelectable => Manager.CurrentTool == ShapeType || Manager.CurrentTool == ShapeType.ToolSelect;
|
||||
|
||||
public bool ForceProportionalResizing { get; protected set; }
|
||||
|
||||
internal ShapeManager Manager { get; set; }
|
||||
|
||||
protected InputManager InputManager => Manager.InputManager;
|
||||
|
@ -246,7 +248,7 @@ public virtual void OnUpdate()
|
|||
StartPosition = StartPosition.Add(InputManager.MouseVelocity);
|
||||
}
|
||||
|
||||
if (Manager.IsProportionalResizing)
|
||||
if (Manager.IsProportionalResizing || ForceProportionalResizing)
|
||||
{
|
||||
float degree, startDegree;
|
||||
|
||||
|
|
|
@ -35,6 +35,11 @@ public class MagnifyDrawingShape : EllipseDrawingShape
|
|||
|
||||
public int MagnifyStrength { get; set; } = 200;
|
||||
|
||||
public MagnifyDrawingShape()
|
||||
{
|
||||
ForceProportionalResizing = true;
|
||||
}
|
||||
|
||||
public override void OnConfigLoad()
|
||||
{
|
||||
base.OnConfigLoad();
|
||||
|
|
Loading…
Reference in a new issue