Skip to content

Commit

Permalink
Process touch events only when awake
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9064 authored and JF002 committed Oct 27, 2024
1 parent 1808634 commit e6ee548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ void DisplayApp::Refresh() {
}
}

if (touchHandler.IsTouching()) {
if (state == States::Running && touchHandler.IsTouching()) {
currentScreen->OnTouchEvent(touchHandler.GetX(), touchHandler.GetY());
}

Expand Down

0 comments on commit e6ee548

Please sign in to comment.