fix scroll inertia
This commit is contained in:
+5
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user