smaller threshold for mouse movement to abort click&drag move operation
This commit is contained in:
parent
a41d142562
commit
730b951b37
|
|
@ -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)))
|
!(state & ShiftMask) && !(xctx->ui_state & (PLACE_SYMBOL | PLACE_TEXT)))
|
||||||
{
|
{
|
||||||
/* make motion a bit sticky. require 10 pixels (screen units, not xschem units) */
|
/* 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;
|
xctx->mouse_moved = 1;
|
||||||
if(!xctx->drag_elements) {
|
if(!xctx->drag_elements) {
|
||||||
int stretch = (state & ControlMask) ? !enable_stretch : enable_stretch;
|
int stretch = (state & ControlMask) ? !enable_stretch : enable_stretch;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue