diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-08-22 21:46:02 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-08-22 21:46:02 +0000 |
commit | 07b2708892196f79853167088e25b443fac0e331 (patch) | |
tree | 395203df428b0e8cd775c59342b32487de29f9c5 /apps/gui/bitmap | |
parent | 40952de355f14f3844d321d51e527bc4ea4af18b (diff) |
Touchscreen list handling: fix issue where scrolling with the scrollbar could bring up the context menu for an item
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22465 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/bitmap')
-rw-r--r-- | apps/gui/bitmap/list.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 71c74dbd09..743ab813af 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -94,7 +94,7 @@ static bool draw_title(struct screen *display, struct gui_synclist *list) display->puts_scroll_style(0, 0, list->title, style); return true; } - + void list_draw(struct screen *display, struct gui_synclist *list) { struct viewport list_icons; @@ -298,6 +298,8 @@ static int gui_synclist_touchscreen_scrollbar(struct gui_synclist * gui_list, int nb_lines = viewport_get_nb_lines(&list_text[screen]); if (nb_lines < gui_list->nb_items) { + scrolling = true; + int scrollbar_size = nb_lines* font_get(gui_list->parent[screen]->font)->height; int actual_y = y - list_text[screen].y; |