smaller threshold for mouse movement to abort click&drag move operation

This commit is contained in:
stefan schippers 2025-11-02 11:19:15 +01:00
parent a41d142562
commit 730b951b37
1 changed files with 1 additions and 1 deletions

View File

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