Fix touch slide end segfault (#40)

* fix touch slide/end issue

* Revert "fix touch slide/end issue"

This reverts commit e9f11fe9905ff3e175e2f37aeafac0fa20956450.

* fix tocuh slide/end issue

* Revert "fix tocuh slide/end issue"

This reverts commit 82264c8382736a1c7b60a0e41b7188c429d2c43f.

* put the file in the wrong place

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
This commit is contained in:
Kevin Koenig
2021-12-02 10:41:08 +11:00
committed by GitHub
co-authored by kkoenig1@optonline.com <kkoenig1@optonline.com>
parent cd52eb9737
commit faae2fff8c
+2
View File
@@ -151,6 +151,8 @@ void MainWindow::checkEvents()
else
touchState.lastDeltaY = 0;
touchedWindow = nullptr; // this is also an end of a touch so reset the touched window. Fixes scroll and touch bug
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);