summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@alnilam.(none)>2010-01-30 16:34:51 +0100
committerHenrik Rydberg <rydberg@alnilam.(none)>2010-01-30 16:34:51 +0100
commite880479ff29e57d8b47f08f620b4bccdd2683aa5 (patch)
tree8083051efc054be0b03c4781b6e24abecf978a8b /src
parent3d4794bdc1d7193751d7cb8b3815625697fbce62 (diff)
sweep feels better without memory
Diffstat (limited to 'src')
-rw-r--r--src/multitouch.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/multitouch.c b/src/multitouch.c
index ff22760..e04cdaa 100644
--- a/src/multitouch.c
+++ b/src/multitouch.c
@@ -257,13 +257,14 @@ static void handle_gestures(LocalDevicePtr local,
257 } 257 }
258 if (GETBIT(gs->type, GS_HSCROLL)) { 258 if (GETBIT(gs->type, GS_HSCROLL)) {
259 hscroll += gs->dx; 259 hscroll += gs->dx;
260 while (hscroll > hstep) { 260 // sweep is more natural as a one-time thing
261 if (hscroll > hstep) {
261 tickle_button(local, 6); 262 tickle_button(local, 6);
262 hscroll -= hstep; 263 hscroll = 0;
263 } 264 }
264 while (hscroll < -hstep) { 265 if (hscroll < -hstep) {
265 tickle_button(local, 7); 266 tickle_button(local, 7);
266 hscroll += hstep; 267 hscroll = 0;
267 } 268 }
268 TRACE1("hscroll: %d\n", gs->dx); 269 TRACE1("hscroll: %d\n", gs->dx);
269 } 270 }