Merge branch 'StefanSchippers:master' into master

This commit is contained in:
Chayan Deb 2025-01-23 15:15:06 +05:30 committed by GitHub
commit 39e6999eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -2680,8 +2680,9 @@ int rstate; /* (reduced state, without ShiftMask) */
}
}
}
/* snap crosshair to closest pin or net endpoint */
if(draw_xhair) {
if(/* (xctx->ui_state & STARTWIRE) && */ (state & ShiftMask) ) {
if( ( (xctx->ui_state & STARTWIRE) || xctx->ui_state == 0 ) && (state & ShiftMask) ) {
double x, y, sx, sy;
sx = xctx->mousex_snap;
sy = xctx->mousey_snap;
@ -4235,6 +4236,7 @@ int rstate; /* (reduced state, without ShiftMask) */
/* terminate wire placement in snap mode */
else if(button==Button1 && (state & ShiftMask) && (xctx->ui_state & STARTWIRE) ) {
snapped_wire(c_snap);
here(1111);
}
/* Alt - Button1 click to unselect */
else if(button==Button1 && (SET_MODMASK) ) {