mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 17:30:06 +01:00
filter: fix comment on how we calculate the slow-motion incline
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ab42022253
commit
8a389c90e9
1 changed files with 1 additions and 1 deletions
|
|
@ -624,7 +624,7 @@ pointer_accel_profile_linear(struct motion_filter *filter,
|
|||
for speeds up to 0.07 u/ms, we decelerate, down to 30% of input
|
||||
speed.
|
||||
hence 1 = a * 0.07 + 0.3
|
||||
0.3 = a * 0.00 + 0.3 => a := 10
|
||||
0.7 = a * 0.07 => a := 10
|
||||
deceleration function is thus:
|
||||
y = 10x + 0.3
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue