fix previous commit: do not affect ctrl-shift drag (move adding wires in separated pins)

This commit is contained in:
stefan schippers 2025-09-07 00:27:12 +02:00
parent f6565977dc
commit 04f2586c9c
1 changed files with 2 additions and 1 deletions

View File

@ -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);