mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 07:32:35 -05:00
yesno/touchscreen: Only accept on touch release.
Keeping the touchscreen pressed during a screen transition can lead to accidental actions. action_wait_for_release() currently doesn't work properly for touchscreen, so it's better to not transition before release. Change-Id: I37bd67945b05fff1b4a5452313f6415a247e3af9
This commit is contained in:
parent
5d9b26f6a2
commit
85a6715afa
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
|
|||
case ACTION_TOUCHSCREEN:
|
||||
{
|
||||
short int x, y;
|
||||
if (action_get_touchscreen_press_in_vp(&x, &y, yn[0].vp) == BUTTON_TOUCHSCREEN)
|
||||
if (action_get_touchscreen_press_in_vp(&x, &y, yn[0].vp) == BUTTON_REL)
|
||||
{
|
||||
if (y > yn[0].vp->height/2)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue