mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 04:40:25 +01:00
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:
parent
0afd0b792f
commit
4a90910895
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue