From 9633ac31ecf9babcce9c77ef22aaff2026d1bc10 Mon Sep 17 00:00:00 2001 From: werapi Date: Fri, 27 Mar 2026 20:59:52 +0100 Subject: [PATCH] opt: refine touch gesture distance judge --- src/dispatch/gesture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/gesture.h b/src/dispatch/gesture.h index c2d63c56..d884ca87 100644 --- a/src/dispatch/gesture.h +++ b/src/dispatch/gesture.h @@ -129,7 +129,7 @@ int32_t gesture_execute(int32_t nfingers, uint32_t swipe, uint32_t edge, for (i = 0; i < config.touch_gesture_bindings_count; i++) { g = &config.touch_gesture_bindings[i]; if (swipe == g->swipe && nfingers == g->fingers_count && - distance >= g->distance && + (distance == g->distance || g->distance == DISTANCE_ANY) && (g->edge == EDGE_ANY || edge == g->edge || ((edge == CORNER_TOP_LEFT || edge == CORNER_TOP_RIGHT) && g->edge == EDGE_TOP) ||