fix scroll inertia

This commit is contained in:
gagarinlg
2021-11-21 20:53:50 +10:00
committed by Peter Feerick
parent b211ce5af6
commit 4e1cba2bad
+5 -1
View File
@@ -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;