aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/DisplayApp.cpp
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2024-09-28 00:11:55 +0100
committerJF <JF002@users.noreply.github.com>2024-10-27 19:51:01 +0100
commite6ee5485368d9ec34882b5bfe9e7eac590db80ca (patch)
treeb6c4bb0ff41d0cb5bb8012a3a182d7e04777bc36 /src/displayapp/DisplayApp.cpp
parent1808634f0e041ed1c85b69a967207c2cff812d81 (diff)
Process touch events only when awake
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
-rw-r--r--src/displayapp/DisplayApp.cpp2
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());
}