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:
Malte Langermann
2021-12-12 20:00:28 +11:00
committed by GitHub
parent a557b5d2fe
commit b8f17aa3f9
+3
View File
@@ -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();