From 8f1e666ef3fe09946a517eb10df2d2659427da0d Mon Sep 17 00:00:00 2001 From: mcuelenaere Date: Sat, 28 Jun 2008 20:11:51 +0000 Subject: [PATCH] Small fix for touchscreen interface git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17856 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/bitmap/list.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index d7494dbc2..2b59fc848 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -353,6 +353,9 @@ unsigned gui_synclist_do_touchpad(struct gui_synclist * gui_list, struct viewpor if(actual_y%line_height == 0) /* Pressed a border */ return ACTION_NONE; + + if(actual_y >= line_height*gui_list->nb_items) /* Pressed below the list */ + return ACTION_NONE; if (line != gui_list->selected_item - gui_list->start_item[SCREEN_MAIN] && button ^ BUTTON_REL) { -- 2.11.4.GIT