list: Fix interrupted playback when scrolling l/r

Change-Id: I2d054a8cec4e680d5ff5ce62e7ea94c00b13ebf1
This commit is contained in:
Christian Soffke 2024-08-01 16:53:57 +02:00
parent d471cd1e7b
commit a7f9557c9c

View file

@ -700,6 +700,7 @@ bool gui_synclist_do_button(struct gui_synclist * lists, int *actionptr)
case ACTION_TREE_PGRIGHT: case ACTION_TREE_PGRIGHT:
gui_synclist_scroll_right(lists); gui_synclist_scroll_right(lists);
gui_synclist_draw(lists); gui_synclist_draw(lists);
yield();
return true; return true;
case ACTION_TREE_ROOT_INIT: case ACTION_TREE_ROOT_INIT:
/* After this button press ACTION_TREE_PGLEFT is allowed /* After this button press ACTION_TREE_PGLEFT is allowed
@ -727,6 +728,7 @@ bool gui_synclist_do_button(struct gui_synclist * lists, int *actionptr)
gui_synclist_draw(lists); gui_synclist_draw(lists);
pgleft_allow_cancel = false; /* stop ACTION_TREE_PAGE_LEFT pgleft_allow_cancel = false; /* stop ACTION_TREE_PAGE_LEFT
skipping to root */ skipping to root */
yield();
return true; return true;
/* for pgup / pgdown, we are obliged to have a different behaviour depending /* for pgup / pgdown, we are obliged to have a different behaviour depending
* on the screen for which the user pressed the key since for example, remote * on the screen for which the user pressed the key since for example, remote