summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-08-15 22:49:01 +0200
committerThomas Martitz <kugel@rockbox.org>2012-08-15 23:10:28 +0200
commit85a6715afaa5ed4e422439ff0ada5d93557fa22c (patch)
tree54fa15122cd69a9450559351a8a1e7a2364da89d
parent5d9b26f6a29e9c429f4f1f09ce0762f2d04023c7 (diff)
downloadrockbox-85a6715afaa5ed4e422439ff0ada5d93557fa22c.tar.gz
rockbox-85a6715afaa5ed4e422439ff0ada5d93557fa22c.zip
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
-rw-r--r--apps/gui/yesno.c2
1 files changed, 1 insertions, 1 deletions
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,
189 case ACTION_TOUCHSCREEN: 189 case ACTION_TOUCHSCREEN:
190 { 190 {
191 short int x, y; 191 short int x, y;
192 if (action_get_touchscreen_press_in_vp(&x, &y, yn[0].vp) == BUTTON_TOUCHSCREEN) 192 if (action_get_touchscreen_press_in_vp(&x, &y, yn[0].vp) == BUTTON_REL)
193 { 193 {
194 if (y > yn[0].vp->height/2) 194 if (y > yn[0].vp->height/2)
195 { 195 {