forked from len0rd/rockbox
Touchscreen/lists: Hopefully fix glitchy behavior that happened after opening the context menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29168 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3804befc13
commit
7436e7ab41
1 changed files with 10 additions and 1 deletions
|
|
@ -643,8 +643,17 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
|
|||
static bool wait_for_release = false;
|
||||
|
||||
released = (button&BUTTON_REL) != 0;
|
||||
if (released)
|
||||
|
||||
if (released && wait_for_release)
|
||||
{ /* was waiting on a release, reset everything so the next call
|
||||
* can start from new */
|
||||
wait_for_release = false;
|
||||
last_position = 0;
|
||||
if (scroll_mode == SCROLL_KINETIC)
|
||||
kinetic_force_stop();
|
||||
scroll_mode = SCROLL_NONE;
|
||||
return ACTION_NONE;
|
||||
}
|
||||
|
||||
if (button == ACTION_NONE || button == ACTION_UNKNOWN)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue