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:
Peter Hutterer 2018-10-04 10:30:26 +10:00
parent d98e474953
commit 60d9defdb7

View file

@ -464,6 +464,9 @@ tp_button_check_for_movement(struct tp_dispatch *tp, struct tp_touch *t)
struct phys_coords mm;
double vector_length;
if (t->button.has_moved)
return;
switch (t->button.state) {
case BUTTON_STATE_NONE:
case BUTTON_STATE_AREA: