diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2012-05-13 19:09:12 +0200 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2012-05-13 19:15:19 +0200 |
| commit | 8689bcc18635526a8af07c08e18e249ef41a2671 (patch) | |
| tree | dcd30b1756780b0b6badf51c1b4239ad0c723f64 /apps | |
| parent | 6b8330d2166dc188ec464693bf9db03cf39e8567 (diff) | |
| download | rockbox-8689bcc18635526a8af07c08e18e249ef41a2671.zip rockbox-8689bcc18635526a8af07c08e18e249ef41a2671.tar.gz rockbox-8689bcc18635526a8af07c08e18e249ef41a2671.tar.bz2 rockbox-8689bcc18635526a8af07c08e18e249ef41a2671.tar.xz | |
Touchscreen: Check if click is outside of list. Fixes FS#12669
Change-Id: Ic036f4c399b89c65bdc43bfdf7111bf4a13be484
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/gui/bitmap/list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 49479c1..0c38132 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -740,6 +740,8 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * list) line = (adj_y - y_offset) / line_height; if (list_display_title(list, screen)) line -= 1; /* adjust for the list title */ + if (line >= list->nb_items) + return ACTION_NONE; list->selected_item = list_start_item+line; gui_synclist_speak_item(list); } |