summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-01-29 16:33:25 +0000
committerThomas Martitz <kugel@rockbox.org>2011-01-29 16:33:25 +0000
commit7436e7ab4112bbda3bd4e534fd6fc49a9286904e (patch)
tree77e2aeac555e83d4e3df783ce33f427ae51fcbf8 /apps
parent3804befc131d1ffbe4f268d08e4b6a36c2349e51 (diff)
downloadrockbox-7436e7ab4112bbda3bd4e534fd6fc49a9286904e.tar.gz
rockbox-7436e7ab4112bbda3bd4e534fd6fc49a9286904e.tar.bz2
rockbox-7436e7ab4112bbda3bd4e534fd6fc49a9286904e.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/bitmap/list.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 268209e1c1..3da0d0bb7f 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)
{