From 48c248d02b49d5adcc6883736ff5a3c775290365 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 8 Apr 2012 13:28:21 +0200 Subject: touchscreen: fix swipe scrolling (jumped back to previous item). Change-Id: I055a5b19dec1db3ad31212dadc11b0f5056be832 --- apps/gui/bitmap/list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 05a7f066af..3d6028ae23 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -800,9 +800,10 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * list) } } else if (action & BUTTON_REL) - { scroll_mode = SCROLL_NONE; - } + + if (scroll_mode == SCROLL_NONE) + last_y = 0; break; } case SCROLL_KINETIC: -- cgit v1.2.3