Change animation direction in menus
This commit is contained in:
parent
f5e43a1668
commit
969bb8e721
|
@ -116,7 +116,7 @@ void List::OnButtonEvent(lv_obj_t * object, lv_event_t event) {
|
|||
if ( event == LV_EVENT_RELEASED ) {
|
||||
for(int i = 0; i < MAXLISTITEMS; i++) {
|
||||
if ( apps[i] != Apps::None && object == itemApps[i] ) {
|
||||
app->StartApp(apps[i], DisplayApp::FullRefreshDirections::Down);
|
||||
app->StartApp(apps[i], DisplayApp::FullRefreshDirections::Up);
|
||||
running = false;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ bool Tile::Refresh() {
|
|||
|
||||
void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) {
|
||||
if(event == LV_EVENT_VALUE_CHANGED) {
|
||||
app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Down);
|
||||
app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Up);
|
||||
running = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user