Process touch events only when awake

This commit is contained in:
mark9064 2024-09-28 00:11:55 +01:00
parent ebe20c2117
commit 6384e6f2a0

View file

@ -463,7 +463,7 @@ void DisplayApp::Refresh() {
} }
} }
if (touchHandler.IsTouching()) { if (state == States::Running && touchHandler.IsTouching()) {
currentScreen->OnTouchEvent(touchHandler.GetX(), touchHandler.GetY()); currentScreen->OnTouchEvent(touchHandler.GetX(), touchHandler.GetY());
} }