From b8f17aa3f9ce5a6486f27f695c841ea98859adcd Mon Sep 17 00:00:00 2001 From: Malte Langermann <54738901+gagarinlg@users.noreply.github.com> Date: Sun, 12 Dec 2021 10:00:28 +0100 Subject: [PATCH] Fix repeated touch events (#44) * fix repeated touch event execution * handle all touch events only once, except for TE_SLIDE_END for touch inertia --- radio/src/thirdparty/libopenui/src/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/mainwindow.cpp b/radio/src/thirdparty/libopenui/src/mainwindow.cpp index 40d5bd1d4..23679dfee 100644 --- a/radio/src/thirdparty/libopenui/src/mainwindow.cpp +++ b/radio/src/thirdparty/libopenui/src/mainwindow.cpp @@ -158,6 +158,9 @@ void MainWindow::checkEvents() onTouchEnd(touchState.startX + scrollPositionX, touchState.startY + scrollPositionY); touchState.event = TE_NONE; } + if(touchState.event != TE_SLIDE_END) { + touchState.event = TE_NONE; + } #endif Window::checkEvents();