scrolling on some old style app (no support hi-res wheel scrolling) might ignore first scroll when direction is changed
For example, Firefox without MOZ_USE_XINPUT2=1 env var, switch KDE virtual desktop by scroll mouse wheel on desktop, any x11 program that don't support hi-res wheel.
Like this issue:
xorg/xserver#1339 (closed)
but in KDE plasma x11 session
video (libinput record
record normal input event, every time I scroll there a REL_WHEEL
event. xev
don't):
Video_2023-09-04_08-20-04
on real app:
Video_2023-09-04_08-41-33
Mouse: Logitech G903 LS
And even on program support hi-res wheel, first scroll only have half long, maybe relate to #5 (closed)
This issue won't happen on evdev or wayland.
when I mess around try to find a solution, I found that if I change this line to valuator_mask_set_double(mask, 3, value*2);
the issue gone, though all hi-res wheel scroll are twice long now, and first hi-res wheel scroll still only have half long