summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-12 15:58:55 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-12 15:58:55 +0000
commit39be5ff9ffffe8952396a919fc65a4e324fb888d (patch)
treebe0e326f58f87eefd9037b99ca03e6726c1df5d9
parent281fc2e708980447db4eaa7abdd5f890919c0462 (diff)
downloadrockbox-39be5ff9ffffe8952396a919fc65a4e324fb888d.tar.gz
rockbox-39be5ff9ffffe8952396a919fc65a4e324fb888d.zip
Touchscreen devices: make scrolling up work better
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19989 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/bitmap/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index f94a950091..231c990bab 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -301,7 +301,7 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
301 return ACTION_NONE; 301 return ACTION_NONE;
302 if (x<list_text[screen].x) 302 if (x<list_text[screen].x)
303 { 303 {
304 /* Top left corner is hopefully GO_TO_ROOT */ 304 /* Top left corner is GO_TO_ROOT */
305 if (y<list_text[SCREEN_MAIN].y) 305 if (y<list_text[SCREEN_MAIN].y)
306 { 306 {
307 if (button == BUTTON_REL) 307 if (button == BUTTON_REL)
@@ -351,7 +351,7 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
351 * | will bring up the context menu of it. | 351 * | will bring up the context menu of it. |
352 * |--------------------------------------------------------| 352 * |--------------------------------------------------------|
353 */ 353 */
354 if (y > list_text[screen].y) 354 if (y > list_text[screen].y || button & BUTTON_REPEAT)
355 { 355 {
356 int line_height, actual_y; 356 int line_height, actual_y;
357 static int last_y = 0; 357 static int last_y = 0;