fix scroll inertia
This commit is contained in:
+5
-1
@@ -77,9 +77,13 @@ void MainWindow::checkEvents()
|
|||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
|
|
||||||
if (touchPanelEventOccured()) {
|
if (touchPanelEventOccured()) {
|
||||||
|
short lastDeltaX = touchState.lastDeltaX;
|
||||||
|
short lastDeltaY = touchState.lastDeltaY;;
|
||||||
touchState = touchPanelRead();
|
touchState = touchPanelRead();
|
||||||
|
touchState.lastDeltaX = lastDeltaX;
|
||||||
|
touchState.lastDeltaY = lastDeltaY;
|
||||||
} else {
|
} else {
|
||||||
touchState.event = TE_NONE;
|
touchState.event = TE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchEnableState currentState = touchEnableState;
|
TouchEnableState currentState = touchEnableState;
|
||||||
|
|||||||
Reference in New Issue
Block a user