From 04f2586c9cf4b8f44fe14e077f92ffe427f83700 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 7 Sep 2025 00:27:12 +0200 Subject: [PATCH] fix previous commit: do not affect ctrl-shift drag (move adding wires in separated pins) --- src/callback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index cc3da452..1cc7c6f2 100644 --- a/src/callback.c +++ b/src/callback.c @@ -4363,7 +4363,8 @@ static void handle_button_release(int event, KeySym key, int state, int button, xctx->drag_elements = 0; } else if(xctx->ui_state & STARTMOVE && xctx->drag_elements) { - if(!xctx->mouse_moved) { /* motion was below 10 screen units so no motion was set, abort */ + /* motion was below 10 screen units so no motion was set, abort */ + if(!(state & ShiftMask) && !xctx->mouse_moved) { move_objects(ABORT,0,0,0); } else { move_objects(END,0,0,0);