diff --git a/meshroom/ui/qml/GraphEditor/Edge.qml b/meshroom/ui/qml/GraphEditor/Edge.qml index ba90a688a8..c0250e4751 100644 --- a/meshroom/ui/qml/GraphEditor/Edge.qml +++ b/meshroom/ui/qml/GraphEditor/Edge.qml @@ -151,5 +151,28 @@ Item { * account. */ curveScale = Qt.binding(() => cubic.ctrlPtDist / root.width) // Normalize by width } + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton + + onPressed: function(mouse) { + if (edgeArea.containsPoint(Qt.point(mouse.x, mouse.y))) { + root.pressed(mouse); + } + else { + mouse.accepted = false; + } + } + + onReleased: function(mouse) { + if (edgeArea.containsPoint(Qt.point(mouse.x, mouse.y))) { + root.released(mouse); + } + else { + mouse.accepted = false; + } + } + } } }