diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-09-28 00:11:55 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-10-27 19:51:01 +0100 |
| commit | e6ee5485368d9ec34882b5bfe9e7eac590db80ca (patch) | |
| tree | b6c4bb0ff41d0cb5bb8012a3a182d7e04777bc36 /src | |
| parent | 1808634f0e041ed1c85b69a967207c2cff812d81 (diff) | |
Process touch events only when awake
Diffstat (limited to 'src')
| -rw-r--r-- | src/displayapp/DisplayApp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 5d33f76e..4b168c43 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -472,7 +472,7 @@ void DisplayApp::Refresh() { } } - if (touchHandler.IsTouching()) { + if (state == States::Running && touchHandler.IsTouching()) { currentScreen->OnTouchEvent(touchHandler.GetX(), touchHandler.GetY()); } |
