• Peter Hutterer's avatar
    touchpad: use motion speed to ignore accidental 2fg touches · de5246da
    Peter Hutterer authored
    Calculate the speed of the touch and compare it against a fixed speed limit.
    If a touch exceeds the speed when a second touch is set down, that second
    touch is marked as a thumb and ignored (unless it's right next to the other
    finger, then it's likely a 2fg scroll).
    
    The speed calculation is simple but has to lag behind by one sample - we reset
    the motion history whenever a new finger is set down (to avoid pointer jumps)
    so we need to know if the finger was moving fast *before* this happens. Plus,
    with the pointer jumps we're more likely to get false positives if we
    calculate the speed on actual finger down.
    
    This is the simplest version for now, the speed varies greatly between
    movements and should probably be averaged across the last 3-or-so samples.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99703Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
    de5246da
Name
Last commit
Last update
doc Loading commit data...
include/linux Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
udev Loading commit data...
.gitignore Loading commit data...
.vimdir Loading commit data...
CODING_STYLE Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...
circle.yml Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...