From 730b951b37502eea85de9c40e831d5fac0cd50ee Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 2 Nov 2025 11:19:15 +0100 Subject: [PATCH] smaller threshold for mouse movement to abort click&drag move operation --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 545ba08f..e12e21bc 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2437,7 +2437,7 @@ static void handle_motion_notify(int event, KeySym key, int state, int rstate, i !(state & ShiftMask) && !(xctx->ui_state & (PLACE_SYMBOL | PLACE_TEXT))) { /* make motion a bit sticky. require 10 pixels (screen units, not xschem units) */ - if(abs(mx - xctx->mx_save) > tk_scaling * 5 || abs(my - xctx->my_save) > tk_scaling * 5) { + if(abs(mx - xctx->mx_save) > tk_scaling * 2 || abs(my - xctx->my_save) > tk_scaling * 2) { xctx->mouse_moved = 1; if(!xctx->drag_elements) { int stretch = (state & ControlMask) ? !enable_stretch : enable_stretch;