Commit 60d9defd authored by Peter Hutterer's avatar Peter Hutterer

touchpad: don't calculate movement for an already-moved touch

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent d98e4749
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment