fix drawing input anchoring incorrectly when using loader

This commit is contained in:
2026-05-27 12:03:06 +02:00
parent 3963a48a9d
commit d92e5b4cd7
4 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -22,20 +22,20 @@ CustomMouseArea {
}
acceptedButtons: Qt.LeftButton | Qt.RightButton
anchors.fill: root.visibilities.isDrawing ? parent : undefined
enabled: z > 0
hoverEnabled: true
visible: root.visibilities.isDrawing
onPositionChanged: event => {
const x = event.x;
const y = event.y;
if (root.visibilities.isDrawing && (event.buttons & Qt.LeftButton)) {
root.drawing.points.push(Qt.point(x, y));
root.drawing.requestPaint();
}
if (root.inLeftPanel(root.popout, x, y)) {
console.log("set -2 z");
root.z = -2;
root.panels.drawing.expanded = true;
}