1
0
Fork 0
forked from len0rd/rockbox

ImageViewer: M3K keymap allow scrolling up/down

Change-Id: I385354688b1d8f8df4d44e7e177e23bdb6ed3df4
This commit is contained in:
Christian Soffke 2022-03-29 20:56:28 +02:00 committed by Aidan MacDonald
parent 6e3937e836
commit ca0c3dee0a
2 changed files with 10 additions and 0 deletions

View file

@ -616,11 +616,19 @@ static int scroll_bmp(struct image_info *info)
case IMGVIEW_UP:
case IMGVIEW_UP | BUTTON_REPEAT:
#ifdef IMGVIEW_SCROLL_UP
case IMGVIEW_SCROLL_UP:
case IMGVIEW_SCROLL_UP | BUTTON_REPEAT:
#endif
pan_view_up(info);
break;
case IMGVIEW_DOWN:
case IMGVIEW_DOWN | BUTTON_REPEAT:
#ifdef IMGVIEW_SCROLL_DOWN
case IMGVIEW_SCROLL_DOWN:
case IMGVIEW_SCROLL_DOWN | BUTTON_REPEAT:
#endif
pan_view_down(info);
break;