summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/bitmap/list.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 0da67c7c1e..2c396c7f00 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -351,19 +351,17 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
351 const int screen = display->screen_type; 351 const int screen = display->screen_type;
352 const int list_start_item = gui_list->start_item[screen]; 352 const int list_start_item = gui_list->start_item[screen];
353 const struct viewport *list_text_vp = &list_text[screen]; 353 const struct viewport *list_text_vp = &list_text[screen];
354 const int list_width = list_text_vp->width;
355
356 if (global_settings.scrollbar == SCROLLBAR_RIGHT)
357 list_width += SCROLLBAR_WIDTH;
354 358
355 if (button == BUTTON_NONE) 359 if (button == BUTTON_NONE)
356 return ACTION_NONE; 360 return ACTION_NONE;
357 361
358 if (x > list_text_vp->x + list_text_vp->width) 362 if (x > list_text_vp->x + list_width)
359 { 363 /* wider than the list's viewport, ignore it */
360 if (global_settings.scrollbar == SCROLLBAR_RIGHT && 364 return ACTION_NONE;
361 x > list_text_vp->x + list_text_vp->width + SCROLLBAR_WIDTH)
362 {
363 /* wider than the list's viewport, ignore it */
364 return ACTION_NONE;
365 }
366 }
367 365
368 if (x < list_text_vp->x) 366 if (x < list_text_vp->x)
369 { 367 {