diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-01-29 16:33:25 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-01-29 16:33:25 +0000 |
| commit | 7436e7ab4112bbda3bd4e534fd6fc49a9286904e (patch) | |
| tree | 77e2aeac555e83d4e3df783ce33f427ae51fcbf8 | |
| parent | 3804befc131d1ffbe4f268d08e4b6a36c2349e51 (diff) | |
| download | rockbox-7436e7ab4112bbda3bd4e534fd6fc49a9286904e.zip rockbox-7436e7ab4112bbda3bd4e534fd6fc49a9286904e.tar.gz rockbox-7436e7ab4112bbda3bd4e534fd6fc49a9286904e.tar.bz2 rockbox-7436e7ab4112bbda3bd4e534fd6fc49a9286904e.tar.xz | |
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
| -rw-r--r-- | apps/gui/bitmap/list.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 268209e..3da0d0b 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -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) { |