1
0
Fork 0
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:
Thomas Martitz 2011-01-29 16:33:25 +00:00
parent 3804befc13
commit 7436e7ab41

View file

@ -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)
{