tools: Use correct event axis in debugging GUI

Vertical axis values were used for the horizontal axis as well.

Introduced 1baf109b40

Signed-off-by: Friedrich Schöller <code@schoeller.se>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Friedrich Schöller 2015-01-23 22:31:04 +01:00 committed by Peter Hutterer
parent 0afd0b792f
commit 4a90910895

View file

@ -370,7 +370,7 @@ handle_event_axis(struct libinput_event *ev, struct window *w)
w->vy = clip(w->vy, 0, w->height);
}
if (h != 0.0) {
w->hx += (int)v;
w->hx += (int)h;
w->hx = clip(w->hx, 0, w->width);
}
}