Skip to content

Commit e6ee548

Browse files
mark9064JF002
authored andcommitted
Process touch events only when awake
1 parent 1808634 commit e6ee548

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/displayapp/DisplayApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ void DisplayApp::Refresh() {
472472
}
473473
}
474474

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

0 commit comments

Comments
 (0)