fix touch end after slide
This commit is contained in:
committed by
Peter Feerick
parent
b8f17aa3f9
commit
580849386b
+1
-1
@@ -155,7 +155,7 @@ void MainWindow::checkEvents()
|
|||||||
|
|
||||||
onTouchSlide(touchState.x, touchState.y, touchState.startX, touchState.startY, touchState.lastDeltaX, touchState.lastDeltaY);
|
onTouchSlide(touchState.x, touchState.y, touchState.startX, touchState.startY, touchState.lastDeltaX, touchState.lastDeltaY);
|
||||||
} else if (touchState.event == TE_SLIDE_END && slidingWindow == nullptr) {
|
} 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;
|
touchState.event = TE_NONE;
|
||||||
}
|
}
|
||||||
if(touchState.event != TE_SLIDE_END) {
|
if(touchState.event != TE_SLIDE_END) {
|
||||||
|
|||||||
Reference in New Issue
Block a user