summaryrefslogtreecommitdiff
path: root/apps/gui/bitmap
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/bitmap')
-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 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)
{