summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArturo Castro <arturo@openframeworks.cc>2010-03-28 10:22:34 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-04-15 06:10:07 +0200
commit173d728d812e78b299cbc9475fc237b9023eee2b (patch)
treef0d021671297b41757bbb0817776ad561db82298 /src
parent2dd36313731773cfd96e41ef6b086bf6a9e5dd20 (diff)
Reverse the order of the hscroll buttons
The horizontal three-finger swipe is currently defined in the opposite direction to what is considered normal. This patch reverses the order of the emitted buttons, restoring normality. Signed-off-by: Arturo Castro <arturo@openframeworks.cc> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src')
-rw-r--r--src/multitouch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multitouch.c b/src/multitouch.c
index fd2393f..012476d 100644
--- a/src/multitouch.c
+++ b/src/multitouch.c
@@ -215,11 +215,11 @@ static void handle_gestures(LocalDevicePtr local,
215 if (GETBIT(gs->type, GS_HSCROLL)) { 215 if (GETBIT(gs->type, GS_HSCROLL)) {
216 hscroll += gs->dx; 216 hscroll += gs->dx;
217 while (hscroll > hstep) { 217 while (hscroll > hstep) {
218 tickle_button(local, 6); 218 tickle_button(local, 7);
219 hscroll -= hstep; 219 hscroll -= hstep;
220 } 220 }
221 while (hscroll < -hstep) { 221 while (hscroll < -hstep) {
222 tickle_button(local, 7); 222 tickle_button(local, 6);
223 hscroll += hstep; 223 hscroll += hstep;
224 } 224 }
225 TRACE1("hscroll: %d\n", gs->dx); 225 TRACE1("hscroll: %d\n", gs->dx);