We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76d0441 commit ca3b77dCopy full SHA for ca3b77d
1 file changed
nodezator/graphman/socketparenthood/action.py
@@ -9,6 +9,10 @@
9
10
from ..socket.output import OutputSocket
11
12
+from pygame.mouse import (
13
+ get_pos as get_mouse_pos,
14
+)
15
+
16
17
class UserActions:
18
"""Behaviours related to user actions."""
@@ -123,6 +127,11 @@ def cancel_defining_segment(self):
123
127
### file state
124
128
APP_REFS.window_manager.set_state("loaded_file")
125
129
130
+ print("NICK: cancel_defining_segment - add mouse up position here, don't delete socket_a")
131
+ mouse_pos = get_mouse_pos()
132
+ APP_REFS.ea.popup_spawn_pos = mouse_pos
133
+ (APP_REFS.window_manager.canvas_popup_menu.focus_if_within_boundaries(mouse_pos))
134
126
135
### restart the loop
136
raise ContinueLoopException
137
0 commit comments