mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-14 23:40:28 +01:00
tablet: Remove unnecessary scale factor on REL_HWHEEL_HI_RES
The two high-res axes should already be scaled appropriately by the
kernel. This unnecessary scale factor causes 1 click of the dial to
produce an event delta of +-14400 rather than the expected +-120.
Fixes: beca998122 ("tablet: add API for relative dials")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1029>
This commit is contained in:
parent
2135b4a6af
commit
66106b9746
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ pad_process_relative(struct pad_dispatch *pad,
|
|||
pad_set_status(pad, PAD_AXES_UPDATED);
|
||||
break;
|
||||
case REL_HWHEEL_HI_RES:
|
||||
pad->dials.dial2 = e->value * 120;
|
||||
pad->dials.dial2 = e->value;
|
||||
pad->changed_axes |= PAD_AXIS_DIAL2;
|
||||
pad_set_status(pad, PAD_AXES_UPDATED);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue