summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-22 22:48:03 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-22 22:48:03 +0000
commit4ce82b9dd1c2d29d0a6123ab16be60662a9e76c8 (patch)
tree542a0969168dedd18d9b61a55205d976cfd0b85b
parente185066bc38ba10530af30318f573ccf2320ee53 (diff)
downloadrockbox-4ce82b9dd1c2d29d0a6123ab16be60662a9e76c8.tar.gz
rockbox-4ce82b9dd1c2d29d0a6123ab16be60662a9e76c8.zip
Touchscreen list handling: ignore presses close to the scrollbar when it's on the right, this is similar as how it's handled when the scrollbar is on the left (icons) and improves user experience due to touchscreen dead zones.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22467 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/bitmap/list.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 743ab813af..2a3a31a548 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -393,6 +393,16 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
return ACTION_REDRAW;
}
+ /* This has the same effect as the icons do when the scrollbar
+ is on the left (ie eliminate the chances an user enters/starts
+ an item when he wanted to use the scrollbar, due to touchscreen
+ dead zones)
+ */
+ if(global_settings.scrollbar == SCROLLBAR_RIGHT &&
+ x > list_text[screen].x + list_text[screen].width -
+ global_settings.scrollbar_width)
+ return ACTION_NONE;
+
if (button == (BUTTON_REPEAT|BUTTON_REL))
{
if(!scrolling)