fix touch end after slide

This commit is contained in:
kkoenig1@optonline.com
2021-12-12 20:04:34 +10:00
committed by Peter Feerick
parent b8f17aa3f9
commit 580849386b
+1 -1
View File
@@ -155,7 +155,7 @@ void MainWindow::checkEvents()
onTouchSlide(touchState.x, touchState.y, touchState.startX, touchState.startY, touchState.lastDeltaX, touchState.lastDeltaY);
} else if (touchState.event == TE_SLIDE_END && slidingWindow == nullptr) {
onTouchEnd(touchState.startX + scrollPositionX, touchState.startY + scrollPositionY);
onTouchEnd(touchState.x + scrollPositionX, touchState.y + scrollPositionY);
touchState.event = TE_NONE;
}
if(touchState.event != TE_SLIDE_END) {