1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Maurus Cuelenaere 2009-08-22 22:48:03 +00:00
parent e185066bc3
commit 4ce82b9dd1

View file

@ -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)