From ac08e6942a6d74f949a3c61414dc7267573cf17e Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 23 Sep 2010 00:02:32 +0000 Subject: Touchscreen: Improve scrolling in absolute point mode. * Scrolling is now done by wiping over the screen. There's no acceleration or kinetic scrolling yet though. But it works rather well (previously you held the edges of the list to scroll). * Improve scrollbar scrolling so that it keeps scrolling even if you leave the scrollbar area. * Hide selection during scrolling * Prevent accidental hitting of the list title (which means go back) during scrolling * Don't go into context menu after scrolling when leaving the screen on an item In general, it's very much like scrolling in native lists in Android, except there's no kinetic scrolling and everything is still line based, but with the feature that the scrollbar enables jumping around in the list and very fast scrolling. Thanks to Dustin Skoracki for his ideas and half of the code for this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28145 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/gui/list.h') diff --git a/apps/gui/list.h b/apps/gui/list.h index 965a46bfc6..57ca912800 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -94,7 +94,10 @@ struct gui_synclist /* wether the text of the whole items of the list have to be * scrolled or only for the selected item */ bool scroll_all; - + /* + * if true the selection bar will not be drawn + */ + bool hide_selection; int nb_items; int selected_item; int start_item[NB_SCREENS]; /* the item that is displayed at the top of the screen */ -- cgit v1.2.3