mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 16:00:09 +01:00
touchpad: fix pinned finger drifting
This caused the finger to be unpinned on the first motion event after the click, effectively disabling this feature. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
65ce6b10ee
commit
b48ecd186d
1 changed files with 2 additions and 2 deletions
|
|
@ -440,8 +440,8 @@ tp_unpin_finger(struct tp_dispatch *tp, struct tp_touch *t)
|
|||
}
|
||||
|
||||
/* The finger may slowly drift, adjust the center */
|
||||
t->pinned.center.x = t->point.x + t->pinned.center.x / 2;
|
||||
t->pinned.center.y = t->point.y + t->pinned.center.y / 2;
|
||||
t->pinned.center.x = (t->point.x + t->pinned.center.x)/2;
|
||||
t->pinned.center.y = (t->point.y + t->pinned.center.y)/2;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue