touchpad: reset the touch state when edge scrolling is stopped

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Peter Hutterer 2015-05-25 11:36:34 +10:00
parent 17d3cf414a
commit 6d0d36fd47

View file

@ -438,6 +438,10 @@ tp_edge_scroll_stop_events(struct tp_dispatch *tp, uint64_t time)
&zero,
&zero_discrete);
t->scroll.direction = -1;
/* reset touch to area state, avoids loading the
* state machine with special case handling */
t->scroll.edge = EDGE_NONE;
t->scroll.edge_state = EDGE_SCROLL_TOUCH_STATE_AREA;
}
}
}