From 173d728d812e78b299cbc9475fc237b9023eee2b Mon Sep 17 00:00:00 2001 From: Arturo Castro Date: Sun, 28 Mar 2010 10:22:34 +0200 Subject: 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 Signed-off-by: Henrik Rydberg --- src/multitouch.c | 4 ++-- 1 file 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); -- cgit v1.2.3