summaryrefslogtreecommitdiff
path: root/src/multitouch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multitouch.c')
-rw-r--r--src/multitouch.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/multitouch.c b/src/multitouch.c
index 6a54c45..f6e5305 100644
--- a/src/multitouch.c
+++ b/src/multitouch.c
@@ -257,14 +257,13 @@ 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 // sweep is more natural as a one-time thing 260 while (hscroll > hstep) {
261 if (hscroll > hstep) {
262 tickle_button(local, 6); 261 tickle_button(local, 6);
263 hscroll = 0; 262 hscroll -= hstep;
264 } 263 }
265 if (hscroll < -hstep) { 264 while (hscroll < -hstep) {
266 tickle_button(local, 7); 265 tickle_button(local, 7);
267 hscroll = 0; 266 hscroll += hstep;
268 } 267 }
269 TRACE1("hscroll: %d\n", gs->dx); 268 TRACE1("hscroll: %d\n", gs->dx);
270 } 269 }