diff --git a/sim/displayapp/LittleVgl.cpp b/sim/displayapp/LittleVgl.cpp index 5a0b2c1..cf77240 100644 --- a/sim/displayapp/LittleVgl.cpp +++ b/sim/displayapp/LittleVgl.cpp @@ -156,6 +156,10 @@ void LittleVgl::SetFullRefresh(FullRefreshDirections direction) { fullRefresh = true; } +bool LittleVgl::IsScrolling() { + return scrollDirection != LittleVgl::FullRefreshDirections::None; +} + // glue the lvgl code to the lv-sim monitor driver void DrawBuffer(lv_disp_drv_t *disp_drv, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t* data, size_t size) { lv_area_t area; diff --git a/sim/displayapp/LittleVgl.h b/sim/displayapp/LittleVgl.h index 54505b3..e19c9b5 100644 --- a/sim/displayapp/LittleVgl.h +++ b/sim/displayapp/LittleVgl.h @@ -27,6 +27,7 @@ namespace Pinetime { void SetNewTouchPoint(int16_t x, int16_t y, bool contact); void CancelTap(); void ClearTouchState(); + bool IsScrolling(); bool GetFullRefresh() { bool returnValue = fullRefresh;