diff options
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
| -rw-r--r-- | src/displayapp/DisplayApp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 725caaf4..6a3ca163 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -222,6 +222,7 @@ void DisplayApp::Refresh() { if (state != States::Running) { break; } + lvgl.SetNewTouchPoint(touchHandler.GetX(), touchHandler.GetY(), touchHandler.IsTouching()); auto gesture = touchHandler.GestureGet(); if (gesture == TouchEvents::None) { break; @@ -261,7 +262,7 @@ void DisplayApp::Refresh() { LoadPreviousScreen(); } } else { - touchHandler.CancelTap(); + lvgl.CancelTap(); } } break; case Messages::ButtonPushed: @@ -339,7 +340,7 @@ void DisplayApp::LoadNewScreen(Apps app, DisplayApp::FullRefreshDirections direc } void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections direction) { - touchHandler.CancelTap(); + lvgl.CancelTap(); ApplyBrightness(); currentScreen.reset(nullptr); |
