summaryrefslogtreecommitdiff
path: root/src/gestures.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gestures.c')
-rw-r--r--src/gestures.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gestures.c b/src/gestures.c
index fb81576..d075356 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -90,10 +90,18 @@ static void extract_type(struct Gestures *gs, struct MTouch* mt)
90 if (gs->dx || gs->dy) { 90 if (gs->dx || gs->dy) {
91 if (mt->state.nfinger == 1) 91 if (mt->state.nfinger == 1)
92 SETBIT(gs->type, GS_MOVE); 92 SETBIT(gs->type, GS_MOVE);
93 if (mt->state.nfinger == 2) 93 if (mt->state.nfinger == 2) {
94 SETBIT(gs->type, GS_VSCROLL); 94 if (gs->dx)
95 if (mt->state.nfinger == 3) 95 SETBIT(gs->type, GS_HSCROLL);
96 SETBIT(gs->type, GS_HSCROLL); 96 if (gs->dy)
97 SETBIT(gs->type, GS_VSCROLL);
98 }
99 if (mt->state.nfinger == 3) {
100 if (gs->dx)
101 SETBIT(gs->type, GS_HSWIPE);
102 if (gs->dy)
103 SETBIT(gs->type, GS_VSWIPE);
104 }
97 } 105 }
98} 106}
99 107