Fix repeated touch events (#44)
* fix repeated touch event execution * handle all touch events only once, except for TE_SLIDE_END for touch inertia
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user