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 ) {
|
if ( event == LV_EVENT_RELEASED ) {
|
||||||
for(int i = 0; i < MAXLISTITEMS; i++) {
|
for(int i = 0; i < MAXLISTITEMS; i++) {
|
||||||
if ( apps[i] != Apps::None && object == itemApps[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;
|
running = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,7 +128,7 @@ bool Tile::Refresh() {
|
||||||
|
|
||||||
void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) {
|
void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) {
|
||||||
if(event == LV_EVENT_VALUE_CHANGED) {
|
if(event == LV_EVENT_VALUE_CHANGED) {
|
||||||
app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Down);
|
app->StartApp(apps[buttonId], DisplayApp::FullRefreshDirections::Up);
|
||||||
running = false;
|
running = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue