on Dynamo v3.7 i noticed this unexpected UI behaviour:
Wire connections are deselected when panning: When I start connecting a wire from one node to another and then try to pan the workspace using the middle mouse button, the wire connection is cancelled.
This is a known issue which was fixed in 4.0. I’ll keep advocating for a fix when I can, but for most impacted integrations (2026 product line) we are past the point of easy adds.
I recommend either doing the zoom out - zoom in’ sequence, or connecting to a new code block, copying the code block, deleting the code block, panning to where you want the connection, and pasting the copy`.