diff options
Diffstat (limited to 'apps/gui/bitmap/list.c')
-rw-r--r-- | apps/gui/bitmap/list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index ae7b19821e..fa015bf71a 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c | |||
@@ -359,7 +359,8 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list) | |||
359 | if (button == BUTTON_NONE) | 359 | if (button == BUTTON_NONE) |
360 | return ACTION_NONE; | 360 | return ACTION_NONE; |
361 | 361 | ||
362 | if (x > list_text_vp->x + list_width) | 362 | /* make sure it is inside the UI viewport */ |
363 | if (!viewport_point_within_vp(list_text_vp, x, y)) | ||
363 | /* wider than the list's viewport, ignore it */ | 364 | /* wider than the list's viewport, ignore it */ |
364 | return ACTION_NONE; | 365 | return ACTION_NONE; |
365 | 366 | ||