From 37d41151bc309c001fa257337c8a7fecb2ab682e Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 10 Sep 2025 13:49:27 +0200 Subject: [PATCH] right use of tk_scaling in sticky click + move --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 7f460ef6..d1328689 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2438,7 +2438,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 > 10 || abs(my - xctx->my_save) * tk_scaling > 10) { + if(abs(mx - xctx->mx_save) > tk_scaling * 10 || abs(my - xctx->my_save) > tk_scaling * 10) { xctx->mouse_moved = 1; if(!xctx->drag_elements) { int stretch = (state & ControlMask) ? !enable_stretch : enable_stretch;