mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-01 22:37:58 +02:00
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:
parent
17d3cf414a
commit
6d0d36fd47
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue