diff --git a/tools/event-gui.c b/tools/event-gui.c index 4f9d7e67..e574bf7f 100644 --- a/tools/event-gui.c +++ b/tools/event-gui.c @@ -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); } }