summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
643 static bool wait_for_release = false; 643 static bool wait_for_release = false;
644 644
645 released = (button&BUTTON_REL) != 0; 645 released = (button&BUTTON_REL) != 0;
646 if (released) 646
647 if (released && wait_for_release)
648 { /* was waiting on a release, reset everything so the next call
649 * can start from new */
647 wait_for_release = false; 650 wait_for_release = false;
651 last_position = 0;
652 if (scroll_mode == SCROLL_KINETIC)
653 kinetic_force_stop();
654 scroll_mode = SCROLL_NONE;
655 return ACTION_NONE;
656 }
648 657
649 if (button == ACTION_NONE || button == ACTION_UNKNOWN) 658 if (button == ACTION_NONE || button == ACTION_UNKNOWN)
650 { 659 {