Process touch events only when awake

This commit is contained in:
mark9064 authored and JF committed 2024-10-27 19:51:01 +01:00
1 parent 1808634f0e
commit e6ee548536
1 file changed
+1 -1
+1 -1
View File
@@ -472,7 +472,7 @@ void DisplayApp::Refresh() {
}
}
if (touchHandler.IsTouching()) {
if (state == States::Running && touchHandler.IsTouching()) {
currentScreen->OnTouchEvent(touchHandler.GetX(), touchHandler.GetY());
}