diff options
author | Arturo Castro <arturo@openframeworks.cc> | 2010-03-28 10:22:34 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2010-04-15 06:10:07 +0200 |
commit | 173d728d812e78b299cbc9475fc237b9023eee2b (patch) | |
tree | f0d021671297b41757bbb0817776ad561db82298 | |
parent | 2dd36313731773cfd96e41ef6b086bf6a9e5dd20 (diff) | |
download | xorg-input-kobomultitouch-173d728d812e78b299cbc9475fc237b9023eee2b.tar.gz xorg-input-kobomultitouch-173d728d812e78b299cbc9475fc237b9023eee2b.tar.bz2 xorg-input-kobomultitouch-173d728d812e78b299cbc9475fc237b9023eee2b.zip |
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>
-rw-r--r-- | src/multitouch.c | 4 |
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, if (GETBIT(gs->type, GS_HSCROLL)) { hscroll += gs->dx; while (hscroll > hstep) { - tickle_button(local, 6); + tickle_button(local, 7); hscroll -= hstep; } while (hscroll < -hstep) { - tickle_button(local, 7); + tickle_button(local, 6); hscroll += hstep; } TRACE1("hscroll: %d\n", gs->dx); |