From 4e1cba2bad15a06ba40c663dcee761f6ecbff358 Mon Sep 17 00:00:00 2001 From: gagarinlg Date: Sat, 20 Nov 2021 15:03:00 +0100 Subject: [PATCH] fix scroll inertia --- radio/src/thirdparty/libopenui/src/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radio/src/thirdparty/libopenui/src/mainwindow.cpp b/radio/src/thirdparty/libopenui/src/mainwindow.cpp index 589722c51..fea41da9a 100644 --- a/radio/src/thirdparty/libopenui/src/mainwindow.cpp +++ b/radio/src/thirdparty/libopenui/src/mainwindow.cpp @@ -77,9 +77,13 @@ void MainWindow::checkEvents() #if defined(HARDWARE_TOUCH) if (touchPanelEventOccured()) { + short lastDeltaX = touchState.lastDeltaX; + short lastDeltaY = touchState.lastDeltaY;; touchState = touchPanelRead(); + touchState.lastDeltaX = lastDeltaX; + touchState.lastDeltaY = lastDeltaY; } else { - touchState.event = TE_NONE; + touchState.event = TE_NONE; } TouchEnableState currentState = touchEnableState;