• Peter Hutterer's avatar
    touchpad: use the same speed for scrolling as the baseline of the accel curve · 2b33445b
    Peter Hutterer authored
    Scrolling and gestures use unaccelerated motion. The idea behind it was that
    at least for the default speed setting of 0, the accelerated speed and
    unaccelerated speed are identical where meaningful.
    The touchpad speed curve has a plateau for 'normal' speeds (i.e. not very slow
    and not very fast) where the acceleration factor is constant. This is the
    reference factor that the unaccelerated motion should use as well.
    Since the touchpad acceleration rework in d6e53134 the reference factor is
    0.9 * TP_MAGIC_SLOWDOWN (previously the factor was 1.0 * TP_MAGIC_SLOWDOWN)
    and scroll motion is thus 10% faster than the pointer movement at the default
    speeds. Let's fix this and let the two match up.
    Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
test-touchpad.c 202 KB