Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alicevision/meshroom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Vital <mugulmotion@gmail.com>2022-11-03 12:33:19 +0300
committerLoïc Vital <mugulmotion@gmail.com>2022-11-03 12:33:19 +0300
commit0795e40ef64775e627ab15926fbe77ae7db038b8 (patch)
tree6e8f153f5e2d296843017b7d72220324e94d1b9c
parentcf3e2b3573f8bc7cde5e960e701b7c7c9143e714 (diff)
[ui] check mouse is in graph editor
-rwxr-xr-xmeshroom/ui/qml/GraphEditor/GraphEditor.qml6
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();
+ }
}
}