summaryrefslogtreecommitdiff
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)
393 return ACTION_REDRAW; 393 return ACTION_REDRAW;
394 } 394 }
395 395
396 /* This has the same effect as the icons do when the scrollbar
397 is on the left (ie eliminate the chances an user enters/starts
398 an item when he wanted to use the scrollbar, due to touchscreen
399 dead zones)
400 */
401 if(global_settings.scrollbar == SCROLLBAR_RIGHT &&
402 x > list_text[screen].x + list_text[screen].width -
403 global_settings.scrollbar_width)
404 return ACTION_NONE;
405
396 if (button == (BUTTON_REPEAT|BUTTON_REL)) 406 if (button == (BUTTON_REPEAT|BUTTON_REL))
397 { 407 {
398 if(!scrolling) 408 if(!scrolling)