diff options
author | Loïc Vital <mugulmotion@gmail.com> | 2022-11-03 12:33:19 +0300 |
---|---|---|
committer | Loïc Vital <mugulmotion@gmail.com> | 2022-11-03 12:33:19 +0300 |
commit | 0795e40ef64775e627ab15926fbe77ae7db038b8 (patch) | |
tree | 6e8f153f5e2d296843017b7d72220324e94d1b9c | |
parent | cf3e2b3573f8bc7cde5e960e701b7c7c9143e714 (diff) |
[ui] check mouse is in graph editor
-rwxr-xr-x | meshroom/ui/qml/GraphEditor/GraphEditor.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meshroom/ui/qml/GraphEditor/GraphEditor.qml b/meshroom/ui/qml/GraphEditor/GraphEditor.qml index 1a983527..36ccc4a4 100755 --- a/meshroom/ui/qml/GraphEditor/GraphEditor.qml +++ b/meshroom/ui/qml/GraphEditor/GraphEditor.qml @@ -140,8 +140,10 @@ Item { } else if (event.key == Qt.Key_Tab) { event.accepted = true; - newNodeMenu.spawnPosition = mouseArea.mapToItem(draggable, mouseArea.mouseX, mouseArea.mouseY); - newNodeMenu.popup(); + if (mouseArea.containsMouse) { + newNodeMenu.spawnPosition = mouseArea.mapToItem(draggable, mouseArea.mouseX, mouseArea.mouseY); + newNodeMenu.popup(); + } } } |