mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 08:18:02 +02:00
touchpad: don't calculate movement for an already-moved touch
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d98e474953
commit
60d9defdb7
1 changed files with 3 additions and 0 deletions
|
|
@ -464,6 +464,9 @@ tp_button_check_for_movement(struct tp_dispatch *tp, struct tp_touch *t)
|
||||||
struct phys_coords mm;
|
struct phys_coords mm;
|
||||||
double vector_length;
|
double vector_length;
|
||||||
|
|
||||||
|
if (t->button.has_moved)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (t->button.state) {
|
switch (t->button.state) {
|
||||||
case BUTTON_STATE_NONE:
|
case BUTTON_STATE_NONE:
|
||||||
case BUTTON_STATE_AREA:
|
case BUTTON_STATE_AREA:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue