• Peter Hutterer's avatar
    touchpad: reset the motion history on significant negative pressure changes · ef48c07a
    Peter Hutterer authored
    Resetting the motion history has the side-effect of swallowing movements, we
    don't calculate deltas until we have 4 motion events. During a finger release,
    we're likely to get a large pressure change between two events, resetting the
    motion history prevents the cursor from jumping on release.
    
    The value of 7 found by trial-and-error, tested on the T440 and T450 hardware.
    The absolute value is highly variable but recordings show that the pressure
    changes only by 1 or 2 units during normal interaction. Higher pressure
    changes are during finger position changes but since those should not cause a
    jump anyway, we tend to win there too.
    
    Currently only enabled for negative pressure changes, let's see how we go with
    that. This is enabled for all touchpads now, but the value may need
    device-specific thresholds in the future.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=94379Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
    ef48c07a
evdev-mt-touchpad.h 12.8 KB