From 85a6715afaa5ed4e422439ff0ada5d93557fa22c Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 15 Aug 2012 22:49:01 +0200 Subject: [PATCH] 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 --- apps/gui/yesno.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index 5ceba10a05..74e3ad05a7 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -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) {