mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-28 11:10:23 +12:00
fixed #6512: When Ctrl key is hold also disable selection of resize nodes
This commit is contained in:
parent
4d2fd61cd1
commit
0922c73bd1
|
@ -1048,7 +1048,7 @@ internal void UpdateObjects(ImageEditorControl[] objects, PointF mousePosition)
|
|||
{
|
||||
ImageEditorControl obj = objects[i];
|
||||
|
||||
if (obj.Visible)
|
||||
if (!IsCtrlModifier && obj.Visible)
|
||||
{
|
||||
obj.IsCursorHover = obj.Rectangle.Contains(mousePosition);
|
||||
|
||||
|
@ -1098,11 +1098,14 @@ internal void UpdateObjects()
|
|||
|
||||
internal void DrawObjects(Graphics g)
|
||||
{
|
||||
foreach (ImageEditorControl obj in DrawableObjects)
|
||||
if (!IsCtrlModifier)
|
||||
{
|
||||
if (obj.Visible)
|
||||
foreach (ImageEditorControl obj in DrawableObjects)
|
||||
{
|
||||
obj.OnDraw(g);
|
||||
if (obj.Visible)
|
||||
{
|
||||
obj.OnDraw(g);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue