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:
Thomas Martitz 2012-08-15 22:49:01 +02:00
parent 5d9b26f6a2
commit 85a6715afa

View file

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