mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
opt: refine touch gesture distance judge
This commit is contained in:
parent
9d7edec710
commit
9633ac31ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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++) {
|
for (i = 0; i < config.touch_gesture_bindings_count; i++) {
|
||||||
g = &config.touch_gesture_bindings[i];
|
g = &config.touch_gesture_bindings[i];
|
||||||
if (swipe == g->swipe && nfingers == g->fingers_count &&
|
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 ||
|
(g->edge == EDGE_ANY || edge == g->edge ||
|
||||||
((edge == CORNER_TOP_LEFT || edge == CORNER_TOP_RIGHT) &&
|
((edge == CORNER_TOP_LEFT || edge == CORNER_TOP_RIGHT) &&
|
||||||
g->edge == EDGE_TOP) ||
|
g->edge == EDGE_TOP) ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue