Apply a "up" transition when an app is opened.

This commit is contained in:
JF 2020-03-10 20:21:41 +01:00
parent 35e221078b
commit 4de22601f5
2 changed files with 6 additions and 3 deletions

View File

@ -162,6 +162,7 @@ void DisplayApp::RunningState() {
if(!currentScreen->Refresh()) {
currentScreen.reset(nullptr);
lvgl.SetFullRefresh(Components::LittleVgl::FullRefreshDirections::Up);
onClockApp = false;
switch(nextApp) {
case Apps::None:

View File

@ -65,10 +65,12 @@ void LittleVgl::InitTouchpad() {
}
void LittleVgl::SetFullRefresh(FullRefreshDirections direction) {
if(scrollDirection == FullRefreshDirections::None) {
scrollDirection = direction;
if (scrollDirection == FullRefreshDirections::Down)
lv_disp_set_direction(lv_disp_get_default(), 1);
}
}
void LittleVgl::FlushDisplay(const lv_area_t *area, lv_color_t *color_p) {
ulTaskNotifyTake(pdTRUE, 500);