diff --git a/src/QuickEditor/SelectionRectangle.qml b/src/QuickEditor/SelectionRectangle.qml --- a/src/QuickEditor/SelectionRectangle.qml +++ b/src/QuickEditor/SelectionRectangle.qml @@ -106,13 +106,13 @@ cursorShape: Qt.SizeBDiagCursor; onPressed: { - brxLimit = parent.x + 20; + brxLimit = parent.x + 40; bryLimit = (parent.y + parent.height) - 20; } onPositionChanged: { if ((parent.x + parent.width + mouse.x) > brxLimit) { - parent.width = parent.width + mouse.x; + parent.width = parent.width + mouse.x - 20; } if ((parent.y + mouse.y) < bryLimit) { @@ -139,7 +139,7 @@ onPressed: { brxLimit = (parent.x + parent.width) - 20; - bryLimit = parent.y + 20; + bryLimit = parent.y + 40; } onPositionChanged: { @@ -149,7 +149,7 @@ } if ((parent.y + parent.height + mouse.y) > bryLimit) { - parent.height = parent.height + mouse.y; + parent.height = parent.height + mouse.y - 20; } drawCanvas.requestPaint(); @@ -170,17 +170,17 @@ cursorShape: Qt.SizeFDiagCursor; onPressed: { - brxLimit = parent.x + 20; - bryLimit = parent.y + 20; + brxLimit = parent.x + 40; + bryLimit = parent.y + 40; } onPositionChanged: { if ((parent.x + parent.width + mouse.x) > brxLimit) { - parent.width = parent.width + mouse.x; + parent.width = parent.width + mouse.x - 20; } if ((parent.y + parent.height + mouse.y) > bryLimit) { - parent.height = parent.height + mouse.y; + parent.height = parent.height + mouse.y - 20; } drawCanvas.requestPaint(); @@ -226,12 +226,12 @@ cursorShape: Qt.SizeVerCursor; onPressed: { - limit = parent.y + 20; + limit = parent.y + 40; } onPositionChanged: { if ((parent.y + parent.height + mouse.y) > limit) { - parent.height = parent.height + mouse.y; + parent.height = parent.height + mouse.y - 20; } drawCanvas.requestPaint(); @@ -277,12 +277,12 @@ cursorShape: Qt.SizeHorCursor; onPressed: { - limit = parent.x + 20; + limit = parent.x + 40; } onPositionChanged: { if ((parent.x + parent.width + mouse.x) > limit) { - parent.width = parent.width + mouse.x; + parent.width = parent.width + mouse.x - 20; } drawCanvas.requestPaint();