diff --git a/Drawers/Drawing.qml b/Drawers/Drawing.qml index 9d7bf63..399b11f 100644 --- a/Drawers/Drawing.qml +++ b/Drawers/Drawing.qml @@ -23,6 +23,7 @@ Canvas { ctx.save(); ctx.lineWidth = root.penWidth; ctx.strokeStyle = root.penColor; + ctx.lineJoin = "round"; ctx.lineCap = "round"; ctx.beginPath(); ctx.moveTo(points[0].x, points[0].y); diff --git a/Drawers/DrawingInput.qml b/Drawers/DrawingInput.qml index a8bec26..ffa37b2 100644 --- a/Drawers/DrawingInput.qml +++ b/Drawers/DrawingInput.qml @@ -32,10 +32,10 @@ CustomMouseArea { if (root.visibilities.isDrawing && (event.buttons & Qt.LeftButton)) { root.drawing.points.push(Qt.point(x, y)); root.drawing.requestPaint(); + return; } - if (root.inLeftPanel(root.popout, x, y)) { - console.log("set -2 z"); + if (!(event.buttons & Qt.LeftButton) && root.inLeftPanel(root.popout, x, y)) { root.z = -2; root.panels.drawing.expanded = true; }